Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.


It's not improving the parser, it's improving the language's syntax definition, which shouldn't care about this in the first place.


PHP'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.


Without 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.




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: