Hacker News new | past | comments | ask | show | jobs | submit login

The entire history of programming languages has been:

- Create a simplistic programming language that looks easy to learn and use but ends up being deceptively complex to apply to real world problems

- Fix those problems with a more rigorous approach that's hard to learn but stands up to real pressure

- Ignore all the lessons learned and create another simplistic programming language that looks easy to learn and use but ends up being deceptively complex to apply to real world problems

If we all agree to stop using Javascript and replace it with something that doesn't have Javascript's baggage I have full confidence that somebody will invent a new "simple" approach on top of that approach that will have all the same oversights Javascript had.




I'm pretty sure we could skip some of the worst ones, such as the interrelations of type coercion and equality. Variable hoisting isn't as big a deal with let, but we could remove that entirely. We could align null and undefined.

We could fix parseint. Instanceof/typeof could align with expectations. Array could be a first class type, and we could have a split between floating point and integer.

We could force global scope to be intentional, with some sort of global keyword. We could get rid of optional semicolons and go one way or the other. We could get rid if "==".

I think cleaning up equality would do the best for bug removal, but with what we've learned over the last 30 years we absolutely could clean up the worst sources of confusion.




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: