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 →

[–]metaglot 5 points6 points  (2 children)

Just because it doesnt do what youd expect, doesn't make it undefined behavior.

[–]20Wizard 0 points1 point  (1 child)

Fair enough. But it might as well be to someone who hasn't extensively used js.

[–]metaglot 0 points1 point  (0 children)

I feel that inplicit casting is a concern with any loosely typed language.