3 ms·
Couldn't we do an optional type with the type system as is rather than embedding in the language? type Optional[V any] struct { IsSet bool Value V }
by campbel 3y ago
Couldn't we do an optional type with the type system as is rather than embedding in the language?
type Optional[V any] struct {
IsSet bool
Value V
}