Brian Hurt
bhurt42.bsky.social
Brian Hurt
@bhurt42.bsky.social
Democratic Socialist politics and pure functional programming, especially Haskell. He/him. You have been warned.
Just had a chat with my Dad, who spent the afternoon tracking down a fence post error in his code, about how folds are dramatically superior to for loops (he doesn't disagree). :-)
January 30, 2026 at 9:36 PM
Ah, sorry. Yes- the deep connections between folds, monoids/semigroups, and functors is fascinating. And pragmatically useful.
January 30, 2026 at 9:33 PM
That's not the type foldr has. Given that Endo b = b -> b, that would give my first (and preferred) alternative: (a -> b -> b) -> f a -> b -> b.
January 30, 2026 at 8:53 PM
I mean, obviously we can't fix it now. But jesus. This probably breaks the top five worst mis-features of Haskell.
January 30, 2026 at 8:33 PM
Reposted by Brian Hurt
You elected him.
You haven't removed him.
You're fuckups.
Own it.
January 17, 2026 at 3:18 AM
I got a value out of a map. It's null. Does that mean that the key was not in the map, or that the key was in the map, and the value associated with it just happened to be null? Nothing = key not in map, Just Nothing = key in map, value is Nothing.
January 9, 2026 at 5:26 PM