|
|
|
|
|
by kmeisthax
2022 days ago
|
|
Functors and Monads already exist in Rust, you just can't talk about them in the trait system. Option, Result, and Future are all both Functors (map) and Monads (and_then). You've probably used them without even knowing, because we didn't give it some weird, unlearnable category theory name. If someone were to create an explicit trait for them and RFC it, they'd probably name it something like Map and Then rather than Functor and Monad. |
|
I think this kind of "you've already used functors or monads, they are just scary names" retort is really missing the point of what folks are complaining about.