4 ms·
And may be a a road to gradual typing, i.e. a forward looking auto. The language spec will probably never allow if (maybe someday in C++), but IDEs might fill i
by zeotroph 7y ago
And may be a a road to gradual typing, i.e. a forward looking auto. The language spec will probably never allow if (maybe someday in C++), but IDEs might fill in the type for you if it can be deduced from a call site later on.
- vkazanov 7y agoYes, that. I find it really... Wonderful how types and declarations are inferred from actual code using 'em. OTOH, this is something I see a lot in Hindley-Milner typed languages, although they don't usually go too far here, i.e. it's not like OCaml or Haskell generates a type declaration for me.