Re:Declined Proposal: A built-in Go error check function, “try”
by edflsafoiewq on Wednesday July 17, 2019 @01:48AM
(#20456836)
There's nothing wrong with unwrap. It's just an assert. Even a[i] is just shorthand for a.get(i).unwrap(). Asserts are definitely appropriate in production code, just not for handling run-time errors.
[ Parent
| on HN ]
There are no comments on this comment yet.