Hacker News new | past | comments | ask | show | jobs | submit login

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.




But it lacks ADTs. And defunctionalization without ADTs is way more complicated to explain due to the necessary boilerplate.


It might be easier in Typescript, which at least has a type system that can say or.




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: