Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
pjmlp
3y ago
0 comments
Save
Share
While it won't win the hearts of Gophers, I would use a utility function that panics if error, at least on throw away code.
0 comments
1 comments · 1 top-level
top
newest
oldest
yakubin
3y ago
There are some instances of it in the stdlib, e.g. <
https://pkg.go.dev/html/template@go1.18.4#Must
>
I'd guess with generics we can expect a generic "Must" to replace them.
j
/
k
navigate · click thread line to collapse