@Crell Personally I don't mind dynamic languages, if that's what you're getting at. You can be dynamic without being boneheaded like this. (I think Perl does it a bit better, IIRC.)
Top-level
@Crell Personally I don't mind dynamic languages, if that's what you're getting at. You can be dynamic without being boneheaded like this. (I think Perl does it a bit better, IIRC.) 9 comments
@Crell Oh we use Javascript all the time and I personally love it! Not so much for its type handling, it can be a bit wonky (insert holy trinity meme), but y'know. I'll take some type wonkiness in return for JS's immense flexibility and unopinionatedness. It doesn't try to force you into any one specific pattern or coding style (*cough*Rust). @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.) @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 You haven't seen anything until you've seen Javascript... :-)
Type juggling outside of a few very narrow conditions is just inherently dangerous.