Hacker News

Favorites Setup
Comment by vips7L | original | A NES emulator written in Odin
[−]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.