5 ms·
I'd rather use a statically typed language, like C++11 to avoid surprises at runtime. I guess you could use TypeScript to circumvent this problem.
by kodr 11y ago
I'd rather use a statically typed language, like C++11 to avoid surprises at runtime. I guess you could use TypeScript to circumvent this problem.
- pcwalton 11y agoYou'd rather use a language full of undefined behavior as opposed to one in which (practically) every behavior of a program is specified by ECMA-262? To "avoid surprises at runtime"?
- striking 11y agoSurprises based on undefined behavior are usually not surprises at runtime, because of superior tooling. Either way, C is best because it has both of those things (tooling, defined behavior). It is possible to write very nice C.
- pcwalton 11y ago> Surprises based on undefined behavior are usually not surprises at runtime, because of superior tooling. Yes, they are. Empirically ([1], just to name one example). > Either way, C is best because it has both of those things (tooling, defined behavior). C has tons of undefined behavior. [1]: https://lwn.net/Articles/342330/ https://lwn.net/Articles/342330/