3 ms·
Do you find this explanation better or worse than the one that uses shift/reset and expressions with holes in them?
by conistonwater 9y ago
Do you find this explanation better or worse than the one that uses shift/reset and expressions with holes in them?
- sillysaurus3 9y agoI think everyone learns differently, and personally I'm a fan of the shotgun method: just explain it ten different ways till one of them clicks.
- DonaldPShimoda 9y agoI'm not OP, but my functional teacher (Matthew Flatt) taught continuations using the "holes". I really didn't get it at first; it was just a little too abstract for me. He had us implementing an interpreter, and step-by-step we were adding more features. Eventually we added continuations (building a CEK machine). It wasn't until I actually used the interpreter and played with it after finishing the homework that continuations started to make sense. But they really solidified for me a year later when I took a course in operational semantics from him. We walked through the evolution of semantics in various languages through history, and had to write out the evaluations of expressions step-by-step (by hand, on paper). Then continuations really made sense.