4 ms·
I've being used PHP since it was Personal Home Page (3.x or something). The reason I moved away from it, is it is language make up. Some point around 4 it try t
by deepstack 5y ago
I've being used PHP since it was Personal Home Page (3.x or something). The reason I moved away from it, is it is language make up. Some point around 4 it try to become Java OO style (ok ES6 is trying to do that too). The main reason moving away from it is because would like to have language that has function as a first class citizen, and JS seems to fit the bill. Once I found the joy of developing with proper closure and using function as a first class citizen PHP just doesn't appeal to me. The best things about PHP is it's templating system. And with EJS or similar there is really no reason to use PHP anymore.
- zzt123 5y agoPHP supports first class functions though?
- deepstack 5y agoYou right they are supporting it since 8.1.0.
- fraktl 5y ago
- captn3m0 5y agoWhile PHP is adding a First class callable syntax in 8.1, first-class-functions have been available in PHP since 5.3.0 (Released Jun 2009) going by the Wikipedia definition: > This means the language supports passing functions as arguments to other functions, returning them as the values from other functions, and assigning them to variables or storing them in data structures. Ref: https://stackoverflow.com/a/59293198/368328 https://stackoverflow.com/a/59293198/368328, https://3v4l.org/rQGk2 https://3v4l.org/rQGk2