Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Future Improvements (https://forums.graalonline.com/forums/forumdisplay.php?f=10)
-   -   Regular Expressions (https://forums.graalonline.com/forums/showthread.php?t=134257341)

coreys 01-22-2010 11:14 PM

Quote:

Originally Posted by Skyld (Post 1551773)
No. Regular expressions are a fantastic way to make code harder to edit and understand (a lot of scripters manage to make things terribly overcomplicated as it is without them!), especially for newer people who will take one look at a regular expression and not know what it is, little less what to do with it. Let's focus on functions that make gscript easier, perhaps.

God forbid we have a useful feature that not everybody can use. God forbid people who don't know how to use something...oh, I don't know, not use it.

I have at least one useful feature in mind where regular expressions would be invaluable, and I'm not the only one. So basically, we can **** off because there are a lot of idiots who want to script on Graal? Sounds reasonable.

cbk1994 01-22-2010 11:34 PM

This is such a silly debate. People will have trouble with any feature they don't understand, it's no reason to not add something. From what others have said, it doesn't sound like it would be hard to add, either.

Inverness 01-22-2010 11:36 PM

Regex is in a whole other class of difficulty, imho. I've considered learning regex before but I'm intimidated and haven't encountered a need to learn it yet. :(

DustyPorViva 01-23-2010 12:34 AM

The only time I think I've ever needed regex was with getstringkeys(). Those instances are few and far between though, and I don't even remember them. Would I have loved to be able to use regex in the few times I actually needed it? Hell yes. Do I really think it's needed? Not really. It's just not something I see being used too much to justify the effort of adding it. Now that can be said about a lot of things, but I feel this is one of those additions that everyone gets all giddy over and then they get it and don't know what the **** they actually want to do with it, and forgets about it. However, if there were any regex added, a very simple form of it would suffice. At least, if not regex then a rip-off wildcard system that format uses(%s, %d, and so on). Anything more complicated would definitely not be used in my opinion.

fowlplay4 01-23-2010 01:11 AM

Quote:

Originally Posted by coreys (Post 1551784)
God forbid we have a useful feature that not everybody can use. God forbid people who don't know how to use something...oh, I don't know, not use it.

I have at least one useful feature in mind where regular expressions would be invaluable, and I'm not the only one. So basically, we can **** off because there are a lot of idiots who want to script on Graal? Sounds reasonable.

GScript2 is a game scripting language though, and it's not really needed at all in game server development.

The only way I can really see this getting implemented is if Stefan finds that he needs it one day, until then it'll be low on priorities as far as adding features/functions to GScript2 goes.

coreys 01-23-2010 03:25 AM

Quote:

Originally Posted by DustyPorViva (Post 1551797)
However, if there were any regex added, a very simple form of it would suffice. At least, if not regex then a rip-off wildcard system that format uses(%s, %d, and so on). Anything more complicated would definitely not be used in my opinion.

That alone would make me an extremely happy scripter.

Loriel 01-23-2010 04:00 AM

Even *** scripting has a regexp lookalike and people use it literally all the time!!

coreys 01-23-2010 04:33 AM

Who cares about WoW, it sucks.

Anyways, I'm for what Dusty suggested. I don't see how that would be unreasonable.

Loriel 01-23-2010 04:41 AM

Quote:

Originally Posted by coreys (Post 1551842)
Who cares about ***,

Literally millions of people who do not care about Graal?

Mark Sir Link 01-23-2010 05:46 AM

Quote:

Originally Posted by coreys (Post 1551842)
Who cares about WoW, it sucks.

Anyways, I'm for what Dusty suggested. I don't see how that would be unreasonable.

if WoW sucks, what does Graal do?

coreys 01-23-2010 06:14 AM

Not here to argue how much WoW sucks.

Loriel 01-23-2010 06:24 AM

Quote:

Originally Posted by coreys (Post 1551855)
Not here to argue how much *** sucks.

Only to argue that we need to copy its features?

coreys 01-23-2010 09:14 AM

Quote:

Originally Posted by Loriel (Post 1551857)
Only to argue that we need to copy its features?

Yes, because WoW invented this and was the first to ever, ever use it. Yes, we'll be copying WoW. Make's perfect sense. I see it now. Oh, woe is me, we'll be copying WoW. I should have known, even though I had no idea that WoW had such or feature nor would I care, nor does WoW have anything to do with it. I should have known I'd be trying to copy WoW! You, sir, have slain me!

SKJF91 01-24-2010 12:02 PM

Quote:

Originally Posted by Loriel (Post 1551857)
Only to argue that we need to copy its features?

why do you keep 'sensoring' the letters 'WoW'..

Crow 01-24-2010 12:47 PM

Quote:

Originally Posted by Loriel (Post 1551857)
Only to argue that we need to copy its features?

Blizzard didn't invent Lua's pattern system.


Quote:

Originally Posted by SKJF91 (Post 1552068)
why do you keep 'sensoring' the letters 'WoW'..

It's not allowed to discuss other MMORPGs.


All times are GMT +2. The time now is 04:33 AM.

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