Hacker News new | ask | show | jobs
by 0x696C6961 28 days ago
Then write yourself a MustMarshal wrapper that panics.
2 comments

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.