Embed Notice
HTML Code
Corresponding Notice
- Embed this notice@Zergling_man @MisterRogersSnapped @dcc @goo
> VB also does this!
Yeah, to be fair some of the JS stuff there is like...stuff you expect a runtime to do if it is all IEEE-754 and there is no real integer, but then stuff like
>array of ints sorted as strings
Zero languages should be allowed to do this. '[] + {}' should probably toss an error of some sort, or coerce the array into an associative array so []+{}=={}, like [1]+{a:2}=={0:1,a:2} would make more sense than JS's fascination with just coercing all types to strings.
> 'banana'
Ha