-
-
Notifications
You must be signed in to change notification settings - Fork 88
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This requires changing the underlying type, which *may* be a breaking change. AFAICT there isn't any way to do this with the struct based type, but can be done with a slice type (or a map, but maps are heavier weight, so chose slice). When the slice is empty (len == 0) it is considered absent, when it has an item it is considered present. This also allows for creating a value via: `Option[T]{value}` Any values appended to the slice after the first are ignored.
- Loading branch information
Showing
4 changed files
with
139 additions
and
95 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.