Re:Crystal in Production: Diploid
by vanderZwan on Saturday October 28, 2017 @12:18PM
(#15575600)
Maybe we're confusing type inference with code generation here? TypeScript doesn't compile to machine code ahead of time, it only has to verify the types.
Here is one of the creators of the language talking about the global type inference of Crystal:
I'd be interested why a compiler would even need to do so in the first place --- constructing every possible one instead of every one it encounters as clearly needed right now.
Edit: OK I see it now, you can have stuff like Int32|String. Still though.. TS can "handle" that too?