Email or username:

Password:

Forgot your password?
Top-level
Frost, Wolffucker 🐺:therian:

@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).

7 comments
Frost, Wolffucker 🐺:therian:

@Crell Also JS isn't quite THIS stupendously boneheaded, haha.

Larry Garfield

@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.)

Frost, Wolffucker 🐺:therian:

@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!

Larry Garfield

@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.

Evert Pot replied to Larry

@Crell @IceWolf well in the example it's not 'tried to use as a number's it's 2 strings being compared no?

Evert Pot replied to Larry

@Crell @IceWolf comparing 2 strings seems common as well :P

Go Up