3 ms·
While I do think it is a stupid idea, whether or not it's make or break will of course depend on what else the laguage has to offer and what the alternatives ar
by cygx 9y ago
While I do think it is a stupid idea, whether or not it's make or break will of course depend on what else the laguage has to offer and what the alternatives are.
I've used JavaScript and PHP in the past (and even enjoyed it!), never mind all the misfeatures of said languages. What bugs me though is that language designers keep making the same mistakes over and over again...
- jwdunne 9y agoPHP scoping is what happens when each scope, including parent and child scopes are completely isolated (except 'superglobals', of which globals are within). To create a closure, you must use "use" and specify the variables to close over. To use globals, you have to say "I want this to be from the global scope or make a global otherwise". Leads to a lot of verbose code and cripples ability to really use FP ideas.