RSSAmplifier

Reasonably Polymorphic · Jan 24, 2025

Use Monoids for Construction

0
Sign in to vote or save

This page cannot be shown here. You can still read it on the original site — the toolbar below keeps your place in the directory.

There’s a common anti-pattern I see in beginner-to-intermediate Haskell programmers that I wanted to discuss today. It’s the tendency to conceptualize the creation of an object by repeated mutation. Often this takes the form of repeated insertion into an empty container, but comes up under many other guises as well. This anti-pattern isn’t particularly surprising in its prevalence; after all, if…

Read on blog/use-monoids/index.html

Comments

Nothing yet. Say the first thing.

    Sign in to join the conversation.