@Crell Also JS isn't quite THIS stupendously boneheaded, haha.
Top-level
6 comments
@Crell really? *waves paw at the OP* :3 but personally I don't mind the + thing at all, since /usually/ it's clear from context. There are worse things! @evert @IceWolf Because in practice it bites you about 10000x as often as "a string that happens to start with 0e will get coerced to 0 if you try to use it as a number." Addition and concat are two of the most common operations. Using the same symbol for them when the types are inherently unknown is begging for trouble. |
@IceWolf + means both addition and concatenate, in a language with no explicit types.
Nothing in PHP comes close to that level of dumb. (And PHP has plenty of dumb.)