News for hackers. Stuff that matters.
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.
Re:A New Go API for JSON by jeremyloy_wt on Wednesday November 04, 2026 @02:41PM (#50370511)
A generic Must[T] you mean ;)
Re:A New Go API for JSON by hnlmorg on Wednesday November 04, 2026 @03:15PM (#50370890)
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.