markphelps / optional

Optional is a library of optional Go types
https://godoc.org/github.com/markphelps/optional
MIT License
209 stars 19 forks source link

Unset() method would be natural #21

Open qqshka opened 2 years ago

qqshka commented 2 years ago

Would be handy to reset optional value (which present) to the state where it not present. Right now you have to create new value and that looks like incomplete/unnatural.