2 ms·
I think JavaScript should be the perfect language for explaining these concepts. Many programmers understand JavaScript, and it has higher-order functions. And
by galaxyLogic 7y ago
I think JavaScript should be the perfect language for explaining these concepts. Many programmers understand JavaScript, and it has higher-order functions.
And many programmers use JavaScript so they could easily start adopting this mechanism in their actual programs.
- choeger 7y agoBut it lacks ADTs. And defunctionalization without ADTs is way more complicated to explain due to the necessary boilerplate.
- garethrowlands 7y agoIt might be easier in Typescript, which at least has a type system that can say or.