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 Ｏ(≧▽≦)Ｏ !