[me reading about functors, applicatives, and monads the first time] this is so confusing, who would want to program like this
[me exploring rust's std] huh, Option's and Result's .and_then method seems pretty neat, this should be part of a trait and isn't but whatever. likewise for .map and friends
[me reading about functors, applicatives, and monads again] whoa so THAT'S what they are how did i not understand this earlier
long story short, by all means sprinkle functional concepts like monads or sum types throughout your mostly imperative language
call them and_then and enums or tagged unions if you must but do it, you'll help functional programming become more accessible for the vast imperative programmer crowd
@steph well so is rust
Welcome to your niu world ! We are a cute and loving international community Ｏ(≧▽≦)Ｏ !