3 ms·
> I don't know of any language where the compiler automatically infers field names and types, and I don't know if I would ever want such a thing. Typescript ca
by josteink 6y ago
> I don't know of any language where the compiler automatically infers field names and types, and I don't know if I would ever want such a thing.
Typescript can do this to unannotated code, and it’s surprisingly useful.
- nerdponx 6y agoI've already started checking out Typescript as a general-purpose scripting language to replace Python, Ruby, Perl, and to some extent Bash/Zsh. Knowing this makes it even more attractive. The only annoyances I've had so far are: difficult-to-search docs, and the `tsc` command-line compiler is slow.