3 ms·
TS has some great typing features that I would miss going back to C#, but I miss the better type error messages I get in a nominal type system.
by seanmcdirmid 7y ago
TS has some great typing features that I would miss going back to C#, but I miss the better type error messages I get in a nominal type system.
- protonimitate 7y agoTS errors are my only real complaint about TS. Otherwise it's a joy to work in, imo. Trying to go from TS back to JS is a frustrating experience to say the least.
- karatestomp 7y agoTS can generate such good and natural looking JS that, faced with someone insisting on receiving a JS codebase, I’d consider keeping a shadow-repo in TypeScript and handing them its output. Doesn’t work so well with an existing codebase, but still.
- damidekronik 7y agoYea, the structural typing nature of TS drives me nuts. One thing I like in TS is the ability to reference individual "parts of a type", for example Account["email"] instead of "string" in function signatures. Is there something like that in C#?