Open maxteufel opened 1 month ago
The behavior in your example is surprising, but I think you can run into a similar surprise call as_string
on a Sequence
, maybe we should rename as_string (one argument)
?
I very much like to be able to treat an option as a Sequence
of length 0 or 1.
this works like if someone had intended to use
x.get ""
, but it doesn't work forx.get "something else"
. this is becauseSequence
hasas_string
taking a separator argument.we should reconsider having
option
(by means ofswitch
) inherit fromSequence
.