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

> The -> is a leftover from an older programming language that I'd rather have replaced by a ., but not at the cost of breaking existing code (which it surely would).

Isn't it because . was already used for string concatenation in PHP. I mean the -> syntax wasn't invented by PHP but it didn't just inherit it without thought either.



Indeed. And the reason why PHP used . for string concatenation is because Perl did.




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

Search: