Re:A New Go API for JSON
by 0x696C6961 on Wednesday November 04, 2026 @02:38PM
(#50370480)
Then write yourself a MustMarshal wrapper that panics.
[ Parent
| on HN ]
Re:A New Go API for JSON
by jeremyloy_wt on Wednesday November 04, 2026 @02:41PM
(#50370511)
A generic Must[T] you mean ;)
The GP is talking about compile time errors. You’re discussing exceptions, which is still a runtime check
Re:A New Go API for JSON
by 0x696C6961 on Thursday November 05, 2026 @07:47AM
(#50378461)
Their complaint is about the signature. The comment about the compile time checking was a misguided justification for their position.