News for hackers. Stuff that matters.
Re:Node.js and the new web front-end by drifkin on Tuesday October 08, 2013 @04:56AM (#6513688)
I think optional typing is better than no typing. It's useful for allowing APIs to be self documenting. It seems as if optional typing is going to get more and more popular. For example, see Google's optional typing in dart, where they actually recommend to not use types for local variables:

https://www.dartlang.org/articles/style-guide/#type-annotati...

Re:Node.js and the new web front-end by ilaksh on Tuesday October 08, 2013 @07:22AM (#6514100)
I am not sure. I think that descriptive identifiers can indicate the type and be augmented by documentation.
Re:Node.js and the new web front-end by lmm on Tuesday October 08, 2013 @08:55AM (#6514483)
They can. But both tend to get out of date as a codebase develops. It's very useful to have an automated tool that ensures the documentation lines up with the actual code - i.e. a type checker.