2 ms·
> You can have a long and productive career as a C programmer knowing nothing but how to create and iterate over arrays! True. > Monoids are so important that
by AnimalMuppet 7y ago
> You can have a long and productive career as a C programmer knowing nothing but how to create and iterate over arrays!
True.
> Monoids are so important that every single modern language (from C++ and Java all the way to Haskell and Scala) devotes a HUGE amount of language and standard library surface area to render data structures as sequences.
Yes and no. Yes, they devote a huge amount of language and standard library surface area to sequences. No, nobody in C cares about that being a monoid, or is thinking about monoids when they use sequences, just like no NBA players think about general relativity when they're shooting a basketball. With C++... maybe a few think about it that way.