▲ | account42 7 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. | ||
▲ | int_19h 7 days ago | parent [-] | |
Indeed. And the reason why PHP used . for string concatenation is because Perl did. |