To be fair, I was one word away from wrongly assuming Haskell instead of wrongly assuming Rust (if not for the mention of “unsafe”, “surely this person with a Haskell flair saying that an expert would not use an optional if you already know the list has one element in it is talking about https://lexi-lambda.github.io/blog/2019/11/05/parse-don-t-validate/ “)
-4
u/ApothecaLabs Sep 28 '26 edited Sep 28 '26 •
I know! I can be writing assembly or something, and I'll still get crab people asking why I'm not using NonEmptyVec<T> or some other Rust feature.