Email or username:

Password:

Forgot your password?
Top-level
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.)

5 comments
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