Hacker News new | ask | show | jobs
by account42 315 days ago
> 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.

1 comments

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