2 ms·
> One disadvantage is that static typing causes more lines of code than dynamic code. Not if the statically typed language uses inference.
by adamnemecek 10y ago
> One disadvantage is that static typing causes more lines of code than dynamic code.
Not if the statically typed language uses inference.
- sytse 10y agoThat would be the best of both worlds indeed. Hope we get this for Ruby https://codon.com/consider-static-typing https://codon.com/consider-static-typing
- saurik 10y agoThe seminal languages with static typing had this feature, so I feel it does the field a disservice to say "the best of both worlds": there are a few annoyingly popular statically typed languages which don't have this property, and they should be considered deficient to the extent to which it is not for theoretical type depenence reasons.