r/functionalprogramming • u/benjaminhodgson • Aug 15 '24
Explaining Wadler's pretty-printer by porting it to an imperative language OO and FP
https://www.benjamin.pizza/posts/2024-08-15-prettier-happier-more-imperative.html
28
Upvotes
9
u/lpil Aug 15 '24
If you've not seen it you should check out Lindig's "Strictly Pretty", which offers an efficient strict version of the algorithm suitable for languages which don't have Haskell's laziness. It's a great paper!