Graal Forums  

Go Back   Graal Forums > Development Forums > Future Improvements
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #61  
Old 08-14-2011, 06:09 AM
MattKan MattKan is offline
the KattMan
Join Date: Aug 2010
Location: United States
Posts: 1,325
MattKan is a splendid one to beholdMattKan is a splendid one to beholdMattKan is a splendid one to beholdMattKan is a splendid one to beholdMattKan is a splendid one to behold
Send a message via AIM to MattKan
I would like this because it would allow people like Crow to make amazing things even more easily to entertain me.

Oh and people like Crow are amazing and deserve this kind of stuff.
Reply With Quote
  #62  
Old 08-14-2011, 12:03 PM
Crow Crow is offline
ǝɔɐɹq ʎןɹnɔ
Crow's Avatar
Join Date: Dec 2006
Location: Germany
Posts: 5,153
Crow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond repute
Quote:
Originally Posted by MattKan View Post
I would like this because it would allow people like Crow to make amazing things even more easily to entertain me.

Oh and people like Crow are amazing and deserve this kind of stuff.
Doh, what the..

Regular expressions are not the key to those super awesome things you'd like, but damn, they are useful.
__________________
Reply With Quote
  #63  
Old 08-14-2011, 12:06 PM
Fulg0reSama Fulg0reSama is offline
Extrinsical Anomaly
Fulg0reSama's Avatar
Join Date: Sep 2009
Location: Ohio
Posts: 3,049
Fulg0reSama has a brilliant futureFulg0reSama has a brilliant futureFulg0reSama has a brilliant futureFulg0reSama has a brilliant futureFulg0reSama has a brilliant futureFulg0reSama has a brilliant futureFulg0reSama has a brilliant futureFulg0reSama has a brilliant future
Quote:
Originally Posted by MattKan View Post
I would like this because it would allow people like Crow to make amazing things even more easily to entertain me.

Oh and people like Crow are amazing and deserve this kind of stuff.
__________________

Careful, thoughts and opinions here scare people.
Reply With Quote
  #64  
Old 08-14-2011, 08:43 PM
salesman salesman is offline
Finger lickin' good.
salesman's Avatar
Join Date: Nov 2008
Location: Colorado
Posts: 1,865
salesman has much to be proud ofsalesman has much to be proud ofsalesman has much to be proud ofsalesman has much to be proud ofsalesman has much to be proud ofsalesman has much to be proud ofsalesman has much to be proud of
specific example of when this would be necessary? I cannot think of any situation where a simpler solution wouldn't work.
__________________
Reply With Quote
  #65  
Old 08-14-2011, 08:51 PM
Crow Crow is offline
ǝɔɐɹq ʎןɹnɔ
Crow's Avatar
Join Date: Dec 2006
Location: Germany
Posts: 5,153
Crow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond repute
Quote:
Originally Posted by salesman View Post
specific example of when this would be necessary? I cannot think of any situation where a simpler solution wouldn't work.
Advanced chat filters. Replacing something in a string. Other stuff.
__________________
Reply With Quote
  #66  
Old 08-14-2011, 09:34 PM
oo_jazz_oo oo_jazz_oo is offline
Jazz teh Awesome
oo_jazz_oo's Avatar
Join Date: Jul 2006
Location: California
Posts: 596
oo_jazz_oo is a jewel in the roughoo_jazz_oo is a jewel in the rough
Send a message via MSN to oo_jazz_oo
Quote:
Originally Posted by salesman View Post
specific example of when this would be necessary? I cannot think of any situation where a simpler solution wouldn't work.
The point isn't what they can do that other solutions can't.
The point is that they might be the better solution.

Thats how scripting languages evolve and become better. If we didn't improve on what we already have, we would still have gs1.

And in a lot of ways, regular expressions can be simpler than other solutions.
It could be the difference of writing a pretty large chunk of code, and comparing a simple regular expression.
__________________

Reply With Quote
  #67  
Old 08-14-2011, 09:40 PM
salesman salesman is offline
Finger lickin' good.
salesman's Avatar
Join Date: Nov 2008
Location: Colorado
Posts: 1,865
salesman has much to be proud ofsalesman has much to be proud ofsalesman has much to be proud ofsalesman has much to be proud ofsalesman has much to be proud ofsalesman has much to be proud ofsalesman has much to be proud of
I have never run into a problem where RegEx was needed on Graal and could personally care less whether or not it's added. I'm just asking the people in this thread who have "been in situations where RegEx would have useful" to support their arguments by stating what those situations were.
__________________
Reply With Quote
  #68  
Old 08-14-2011, 09:42 PM
Bubble13 Bubble13 is offline
Registered User
Join Date: Sep 2010
Location: USA
Posts: 172
Bubble13 is on a distinguished road
Quote:
Originally Posted by salesman View Post
I have never run into a problem where RegEx was needed on Graal and could personally care less whether or not it's added. I'm just asking the people in this thread who have "been in situations where RegEx would have useful" to support their arguments by stating what those situations were.
There don't have to be any situations. It can be said that a scripting language really isn't complete without regular expressions.
Reply With Quote
  #69  
Old 08-15-2011, 12:42 AM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Quote:
Originally Posted by Bubble13 View Post
There don't have to be any situations. It can be said that a scripting language really isn't complete without regular expressions.
No. Changes should only be made because those changes will be useful. If there are no solutions where regular expressions would be useful, why add them to the language?
__________________
Reply With Quote
  #70  
Old 08-15-2011, 12:56 AM
DustyPorViva DustyPorViva is offline
Will work for food. Maybe
DustyPorViva's Avatar
Join Date: Sep 2003
Location: Maryland, USA
Posts: 9,589
DustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond repute
Send a message via AIM to DustyPorViva Send a message via MSN to DustyPorViva
I've only needed this maybe... once or twice. I really wanted regular expressions those one or two times, but otherwise couldn't care less. It sounds awesome those few times you really want it, but other than that I can't see it being that useful.
Reply With Quote
  #71  
Old 08-15-2011, 05:56 PM
Chompy Chompy is offline
¯\(º_o)/¯
Chompy's Avatar
Join Date: Sep 2006
Location: Norway
Posts: 2,815
Chompy is just really niceChompy is just really niceChompy is just really nice
Send a message via MSN to Chompy
Making a RegEx parser isn't difficult, but it be would be more effective to have it as an in-built one if it ever was added.

RegEx could easily be used for more advanced systems dealing with a lot of information that change over time, instead of searching by wildcards for example, regex would be more effective finding specific and advanced patterns. It would also be good for e.g. fixing typos, validate input, transform parts of strings into something else and more.

"Changes should only be made because those changes will be useful." That's really productive, right... Who or what determines if changes are useful or not then?
__________________
Reply With Quote
  #72  
Old 08-15-2011, 06:11 PM
Fulg0reSama Fulg0reSama is offline
Extrinsical Anomaly
Fulg0reSama's Avatar
Join Date: Sep 2009
Location: Ohio
Posts: 3,049
Fulg0reSama has a brilliant futureFulg0reSama has a brilliant futureFulg0reSama has a brilliant futureFulg0reSama has a brilliant futureFulg0reSama has a brilliant futureFulg0reSama has a brilliant futureFulg0reSama has a brilliant futureFulg0reSama has a brilliant future
I believe Chompy just won this thread.

/thread
__________________

Careful, thoughts and opinions here scare people.
Reply With Quote
  #73  
Old 08-15-2011, 10:50 PM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Quote:
Originally Posted by Chompy View Post
"Changes should only be made because those changes will be useful." That's really productive, right...
Yes, it is productive. If you add changes that aren't useful then by definition they'll seldom be used, and the time used to add them is wasted.

I'm guessing we agree and I just wasn't very clear in making my point. You wouldn't advocate adding feature X to GScript just because language Y has it, right?

The post I was replying to said exactly that:

Quote:
Originally Posted by Bubble13 View Post
There don't have to be any situations. It can be said that a scripting language really isn't complete without regular expressions.
In other words, "even if nobody would ever use them, they should still be added because lots of other languages support them."
__________________
Reply With Quote
  #74  
Old 08-16-2011, 12:05 AM
Bubble13 Bubble13 is offline
Registered User
Join Date: Sep 2010
Location: USA
Posts: 172
Bubble13 is on a distinguished road
Quote:
Originally Posted by cbk1994 View Post
In other words, "even if nobody would ever use them, they should still be added because lots of other languages support them."
Sorry, I wasn't very clear. I guess I meant to say that people shouldn't have to list situations. I'm pretty sure that there would be situations that would be made easier with RegEx even if the situations weren't listed.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 04:19 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.