|
|
|
|
|
by rectang
2408 days ago
|
|
I actually have a decent practical understanding of sum types as they are used in Rust at least (including the tagged union implementation of enum). It's good enough to do useful work. Every time that functional programming patterns get discussed, though, there is a mad rush by functional programmers to impress upon everyone just how complicated they are. It is the same impulse that keeps the mathematical entries in Wikipedia accurate but utterly worthless for most people. |
|
> Every time that functional programming patterns get discussed, though, there is a mad rush by functional programmers to impress upon everyone just how complicated they are.
I... haven't observed this behavior personally. FWIW, I don't think that saying (for example)
> Hey, we can actually define what "|" and "(_,_)" means in a mathematical way
detracts in any way from a practical understanding. Can you elaborate on why you think it's detrimental? (I understand that it can come off as a little bit smug, but beyond that... meh?)