Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I find I have to comment quite a bit with JS because so much can be left up to interpretation, even in the code. It's the only time I wish there was some manner of type safety in JS, even if only in expression -- it sucks when an out-of-date comment gives the wrong type of an incoming param, and it's not until you actually step through that you see that.


You might like Microsoft's TypeScript then. It's a JavaScript superset adding ES6-style classes and modules, and optional static typing.




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

Search: