3 ms·
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
by drifkin 13y ago
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-annotations https://www.dartlang.org/articles/style-guide/#type-annotati...
- ilaksh 13y agoI am not sure. I think that descriptive identifiers can indicate the type and be augmented by documentation.
- lmm 13y agoThey 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.