Hacker News

Favorites Setup
Comment by wolttam | original | A NES emulator written in Odin
[−]wolttam · 2026-11-15 Sun 18:27 UTC · link
Errors as values instead of some special language construct is generally a nice thing (IMO)
[−]vips7L · 2026-11-15 Sun 18:31 UTC · link
Exceptions are values. There's nothing different between:

    T someFn() throws E;
    fn someFn() -> Result<T, E>;
    func someFn() (T, E)
[−]Dr_Emann · 2026-11-15 Sun 19:09 UTC · link
In only one of those examples do you get a T that's invalid.