Slacker News Slacker News logo featuring a lazy sloth with a folded newspaper hat
  • top
  • new
  • show
  • ask
  • jobs
Library

Comment by 0x696C6961

23 days ago

Then write yourself a MustMarshal wrapper that panics.

3 comments

0x696C6961

Reply

jeremyloy_wt  23 days ago

A generic Must[T] you mean ;)

hnlmorg  23 days ago

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

  • 0x696C6961  23 days ago

    Their complaint is about the signature. The comment about the compile time checking was a misguided justification for their position.

Slacker News

Product

  • API Reference
  • Hacker News RSS
  • Source on GitHub

Community

  • Support Ukraine
  • Equal Justice Initiative
  • GiveWell Charities