Hacker News new | past | comments | ask | show | jobs | submit
Then write yourself a MustMarshal wrapper that panics.
A generic Must[T] you mean ;)
The GP is talking about compile time errors. You’re discussing exceptions, which is still a runtime check
Their complaint is about the signature. The comment about the compile time checking was a misguided justification for their position.