Quote:
Originally Posted by Skyld
There's no point. It takes almost no effort to type (@ "Control-NPC").functionname(); or this.join("classname");, and adding things like this just promotes laziness and makes things more complicated. :/
|
Those are both bad reasons. Classes get disorganized easily if you have many utility functions and things like I do and I don't want the functions from the class being added to the object for stuff like that.
Having global functions would make it easier on those who are unfamiliar with the system. Its called encapsulation and I try to practice it in just about everything I do. I'd love to be able to reorganize how something works and still have other scripts on the server work correctly because of the global functions. That is why GS1 still works, yes?
And please explain how it makes things more complicated, I can't see anything complicated with adding another space to the function lookup. It seems like you're worrying about how badly newbie scripters can **** it up instead of focusing on the good and thats irritating. Having global functions easily accessible to novice scripters would just make things easier.
So far I've seen bad reasons as to why a simple new feature shouldn't be added to gscript. Graal has a crapload of global functions and I suppose thats just too much for us mortal scripters to handle.