News for hackers. Stuff that matters.
Re:Why Would Anyone Need JavaScript Generator Functions? by svieira on Monday November 07, 2022 @11:57AM (#33508485)
It's not in JavaScript, but see Unifying Church and State: FP and OOP Together for another example of the "switch / named functions" (or "Wadler's Expression Problem") described in a pretty intuitive way: https://www.youtube.com/watch?v=IO5MD62dQbI
Re:Why Would Anyone Need JavaScript Generator Functions? by aastronaut on Monday November 07, 2022 @01:07PM (#33509609)
there goes my evening, that's what I like about HN. thanks for the refs!