logoalt Hacker News

0x696C6961 • yesterday at 7:38 PM • 2 replies • view on HN

Then write yourself a MustMarshal wrapper that panics.


Replies

jeremyloy_wt • yesterday at 7:41 PM

A generic Must[T] you mean ;)

hnlmorg • yesterday at 8:15 PM

The GP is talking about compile time errors. You’re discussing exceptions, which is still a runtime check