Easy error to fix but really annoying, as the error message is usually hard to decipher because @typeName() of an error set is often very, very long. And if the variable in question gets passed to a function accepting anytype, you could end up with an error triggered at a location far from where the omission of try actually is.
Since we almost never store error unions in variables, I think it’d be helpful to not allow their creation without an explicitly declared type. Detecting omissions of try during syntax highlighting would save a lot of time.
For the cases where you do want to hold the error union object, it’s not always trivial to write its type.
it could make generic programming more complicated. I’m assuming there are cases where the generic code doesn’t care if an expression is an error union, a normal value, or even void.
Should we also disallow sending an error union value into an anytype argument?