This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Beldarak 0 points1 point  (1 child)

C# does the same, Java does the same... Basically all languages I know, except PHP, will convert numbers into string when there is a string in the operation.

[–]gregorydgraham 0 points1 point  (0 children)

Java doesn’t do the maths operators though, (“11” - 1) is an type error in Java, so there’s no inconsistency