Day 6: Immutable data structures and reduction in Raku

For a little compiler I’ve been writing, I felt increasingly the need for immutable data structures to ensure that nothing was passed by references between passes. I love Perl and Raku but I am a functional programmer at heart, so I prefer map and reduce over loops. It bothered me to run reductions on aContinue reading “Day 6: Immutable data structures and reduction in Raku”

Day 17 – Generic data structure traversals with roles and introspection

Generic datastructure traversals with roles and introspection I am a lambdacamel and therefore I like to adapt concepts and techniques from functional programming, and in particular from the Haskell language, to Raku. One of the techniques that I use a lot is generic traversals, also known as “Scrap Your Boilerplate” after the title of theContinue reading “Day 17 – Generic data structure traversals with roles and introspection”