3 ms·
There's no reason in PHP's design that wouldn't work -- they just need someone to work on improving the parser to handle that.
by wvenable 14y ago
There's no reason in PHP's design that wouldn't work -- they just need someone to work on improving the parser to handle that.
- TazeTSchnitzel 14y agoIt's not improving the parser, it's improving the language's syntax definition, which shouldn't care about this in the first place.
- wvenable 14y agoPHP's parser is the language syntax definition. It's perfectly reasonable for any PHP developer to attempt that call because it should work. PHP's parser, for no good reason, just doesn't like it. I'd consider it a bug rather than design problem.
- robryan 14y agoWithout having investigated it, I would guess that the parser isn't abstract and modular enough so they end up with a mess of code trying to handle all the different possible combinations of syntax.