News for hackers. Stuff that matters.
Re:Defunctionalisation: An underappreciated tool for writing... by edflsafoiewq on Monday March 09, 2020 @10:19AM (#22525514)
> It's not clear to me that it has any use at all if you don't have higher-order functions

Your example in the "Testability" section doesn't involve HOFs. I thought it was interesting to view that example as an instance of defunctionalisation.

Re:Defunctionalisation: An underappreciated tool for writing... by Smaug123 on Monday March 09, 2020 @10:24AM (#22525569)
I guess that's true. It was my inner compiler-writer speaking there. (To match defunctionalisation with the initial algebra pattern does require HOFs in all but the simplest cases, I think.)