This seems strongly inspired by Rust's type system. There, such a thing is built-in. It's Results all the way there…
And yeah, the syntax is very similar… (same names even)
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.