Hacker News

Favorites Setup
Comment by iaaan | original | A NES emulator written in Odin
[−]iaaan · 2026-11-15 Sun 18:05 UTC · link
As someone who is primarily a Go dev, I never understood this criticism and have never seen a language do it any better (but I'm open to suggestions). I think try/catch is worse. I kinda like JS's promise syntax with the `.then()` and `.catch()`, but it doesn't appear that different to Go's approach.
[−]vips7L · 2026-11-15 Sun 18:45 UTC · link
Personally I think Go style is worse, because the runtime and compiler don't force you to handle the error. I just had to fix a critical issue because a dev forgot to check the result coming from a function, exceptions would have forced it to happen.