9 ms·
Just looked through the RFCs... and I'm a bit surprised noone proposed unification of types yet. It seems a bit silly that the resources, objects, arrays, strin
by viraptor 15y ago
Just looked through the RFCs... and I'm a bit surprised noone proposed unification of types yet. It seems a bit silly that the resources, objects, arrays, strings are different types at the language level. They could throw out / reorganise a lot of the randomly named functions this way. Just add the proper methods to the actual types and sort out the (haystack, needle) order, underscores or lack of them, etc.
- nyordanov 15y agoRight, but wouldn't that make PHP code too good looking? The core devs wouldn't allow it ;) My only wish is that they implement something that evaluates {} to (object)array(). It would come in handy when used with anonymous functions. Anyway, I am pleased with the new syntax, but sadly, I have to use 5.2 as most of the time I'm working on WordPress projects...