4 ms·
I don't understand how this is fundamentally different from just doing it in regular javascript. You could write a javascript function that recurses forever on
by myusernameisok 9y ago
I don't understand how this is fundamentally different from just doing it in regular javascript. You could write a javascript function that recurses forever on condition x:
just write a function that calls itself with the same parameters unless condition x is met. How is it fundamentally different if the type system does it?
- shusson 9y ago> How is it fundamentally different if the type system does it? runtime vs compile time. For example someone could write some TypeScript that would forever compile, which is intuitively unexpected when compiling.
- deleted 9y ago[deleted]