Gno: An interpreted, stack-based Go virtual machine to build succinct and composable apps + Gno.land: a blockchain for timeless code and fair open-source
Currently, the only way to compare errors in .gno packages is to use the equals operator ==, as users are limited to the standarderrors package.
Gno should support other useful methods from the Go standard errors library, like errors.Is and errors.As, because it makes it easy to do error comparisons and brings it closer to idiomatic Go.
Description
Currently, the only way to compare errors in
.gno
packages is to use the equals operator==
, as users are limited to the standarderrors
package.Gno should support other useful methods from the Go standard
errors
library, likeerrors.Is
anderrors.As
, because it makes it easy to do error comparisons and brings it closer to idiomatic Go.