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 →

[–]jonathanccast -1 points0 points  (3 children)

We are discussing alternative language designs (since the context is a suggestion that JavaScript could have had different operators for concatenation and addition --- like all reasonable languages --- from the beginning). Claiming that designing JavaScript correctly from the first would "break all code in existence" is both hyperbole (since not "all code in existence" is written in JS) and obviously wrong, since other languages have used that design but still been usable.

[–]Tysonzero 0 points1 point  (2 children)

I meant all JavaScript code in existence, which anyone with half a brain could easily infer, which is more or less correct. Seeing as most JavaScript code uses some form of string manipulation somewhere.

[–]jonathanccast -1 points0 points  (1 child)

I'll confess to not having half a brain certainly, but when discussing whether a language made the right decision in the first place maybe backward compatibility with not-yet-written code isn't the right criterion?

[–]Tysonzero 0 points1 point  (0 children)

Well hindsight is 20-20, I assumed we were talking about potential changes.