Brendan Eich (2015-01-04T04:36:30.000Z)
d at domenic.me (2015-01-12T17:56:30.871Z)
Alex Kocharin wrote: > 04.01.2015, 05:44, "Rick Waldron" <waldron.rick at gmail.com>: > >> How would a linter know that `symbol` was actually a Symbol? > > It wouldn't. But if it warns about string concatenation inside square > braces (means, string + variable, but not number + variable), it > should be good enough. This is the error the spec is trying to > prevent, isn't it? No. See the JQuery examples that bz provided. > My point is: concatenating Symbols with other strings have legitimate > uses. Name one. > And javascript shouldn't require any explicit type casting in order to > do this, it isn't a statically typed language. Static types have nothing to do with getting an error on implicit conversion.
d at domenic.me (2015-01-12T17:56:20.601Z)
Alex Kocharin wrote: > 04.01.2015, 05:44, "Rick Waldron" <waldron.rick at gmail.com>: > >> How would a linter know that `symbol` was actually a Symbol? > It wouldn't. But if it warns about string concatenation inside square > braces (means, string + variable, but not number + variable), it > should be good enough. This is the error the spec is trying to > prevent, isn't it? No. See the JQuery examples that bz provided. > My point is: concatenating Symbols with other strings have legitimate > uses. Name one. > And javascript shouldn't require any explicit type casting in order to > do this, it isn't a statically typed language. Static types have nothing to do with getting an error on implicit conversion.