Remix.run Logo
lionkor a year ago

Have you tried the approach that Zig has, or the approach that Rust has? They are easy to debug and do not use any crazy stuff, just simple syntax like `try x()` (Zig) or `x()?` (Rust)

clausecker a year ago | parent [-]

Yes and that syntax sucks.

lionkor a year ago | parent [-]

That sounds like your opinion rather than a "it sucks because it encouraged bad practices" or something

clausecker a year ago | parent [-]

if err != nil { return err; } is an antipattern. Codifying it through builtin constructs does not change this, but instead encourages such poor error handling. That's why try sucks.