logoalt Hacker News

HeavyRain266 • yesterday at 8:29 PM • 0 replies • view on HN

Odin has @(require_results) that forces you to do something with returned values (e.g. T, Maybe(T), (T, bool))

Where Maybe is a polymorphic union of T and nil but the core library returns either (T, bool) or (T, E) where E is an error enum.