2 ms·
> Now, as to whether there's a benefit to learning an entirely new language in order to do this, I'm not so sure. Why not extend (and simplify) PHP while still
by paulgb 18y ago
> Now, as to whether there's a benefit to learning an entirely new language in order to do this, I'm not so sure. Why not extend (and simplify) PHP while still using PHP syntax and grammar, the way jQuery does for JavaScript?
jQuery can do this because, despite its quirks, JavaScript is actually a well designed programming language. It has goodies like closures, anonymous functions, and first class functions, so it is fairly extensible. PHP is just a glorified template language with wrappers to C functions.