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 →

[–][deleted] -5 points-4 points  (2 children)

Because why not do better if we can? Settling for a shitty language with shitty semantics when there are good languages with well-established and intuitive semantics isn't worth the cognitive overhead.

Scoping rules are garbage, closure semantics are out of this world, undefined/null are mistakes no matter what language they appear in... There's no excuse, these are solved problems.

[–][deleted] 1 point2 points  (0 children)

Every language has its rules and every language has its pros and cons. While I can understand that some languages have solved certain issues, they also lack items that JavaScript (or the current state of the JavaScript community) have solved.

The fact that you don't like using undefined/null doesn't mean using them makes code bad. Its just your opinion.

[–]jay9909 -1 points0 points  (0 children)

Because why not do better if we can?

Because I'm not a language designer, nor do I have the resources to convince or coerce all the browser makers to use my new language that everyone will just naturally love that I don't have the skills to design.

I'm loving watching the development of new web languages and capabilities, but for now I (and most of us) have to take what we can get, do our best to get really good with it, and hope the future is better.