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

"This is approximately the same reason as why I start out writing most of my programs by creating a bunch of types, and why I find dynamic programming languages uncomfortable to use."

Classes. There are your types. Python has them. Ruby has them. Javascript has them. . . .



If you can't see see the qualitative difference between algebraic data types and Javascript classes, there's no point discussing things.


Precisely. If you think that classes are all that you are ever going to need then you should read up on the Expression Problem

http://c2.com/cgi/wiki?ExpressionProblem


OK.


Javascript only has Objects not Classes.


Thanks, I stand adjusted. And of course you can use prototypes (objects) for the same intent as classes, which was the source of my error.




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

Search: