Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> all we need is sugar syntax for early return on error -- like more modern languages such as Rust and Zig have -- and Go may finally be pleasant to program in!

Can you provide an example? What's wrong with `return err`? That's a very explicit early return on error, no magic or language features (= added complexity) needed.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: