3 ms·
> "Box" isn't really a useful type. It is very close to one. My Option[T] type [1] cannot have a Map method in stable Go because of the type system restriction
by majewsky 2mo ago
> "Box" isn't really a useful type.
It is very close to one. My Option[T] type [1] cannot have a Map method in stable Go because of the type system restriction in question. Instead, I have a separate package with freestanding functions with the same purpose, including Map [2].
[1] https://pkg.go.dev/go.xyrillian.de/gg/option#Option https://pkg.go.dev/go.xyrillian.de/gg/option#Option
[2] https://pkg.go.dev/go.xyrillian.de/gg/options#Map https://pkg.go.dev/go.xyrillian.de/gg/options#Map