Boilerplate busting in functional languages

Boilerplate Busting in Functional Languages.
This is the story of how I solved a problem (ugly, cumbersome boilerplate code) that I ran into while writing a program in a functional language (Elixir). Functional programming languages often pride themselves on expressiveness and elegance; but occasionally they are not amenable to the most obvious solutions to the problems we wish to solve. In this case, the simplest solution to my problem would have been to have a global mutable variable.

Read in full here:

This thread was posted by one of our members via one of our news source trackers.