5 ms·
Large projects have overwhelmingly been written in statically typed languages throughout the entire history of our industry. Large projects in Javascript is a c
by sapiogram 3y ago
Large projects have overwhelmingly been written in statically typed languages throughout the entire history of our industry. Large projects in Javascript is a comparatively recent development, in that context the rise of Typescript is completely understandable.
- jdthedisciple 3y agoSure but why does TypeScript have to be even less graceful than C# which is arguable the Gold Standard of static typing? It's simply a hurdle rather than a blessing all too often. No issues with C# however. I use C# as comparison as it comes from the same house and was arguable used as inspiration for TS.
- explaininjs 3y ago> why does (language explicitly designed to compile down to JS with 0 adaptation layer) have to be less graceful than (thing made by the same people but with no such constraints)? Hm.
- jdthedisciple 3y agoGenuinely trying to understand. Argued from first principles: Since TS is a superset of JS, we can assert that the both constitute opposite ends on the spectrum of static typing. Thus, surely there are infinitely many levels of possible gracefulness in-between? IOW: If JS can live with no constraints, then why can't TS live with with slightly more graceful ones than the current?
- explaininjs 3y agoThat’s called adjusting strictness flags.
- bazoom42 3y agoImagine doing something similar in C#, i.e. copying all properties from one arbitrary object to another. This would require the use of reflection and would not be typesafe at all, since reflection in C# is not typesafe.