optional-chain icon indicating copy to clipboard operation
optional-chain copied to clipboard

Matcher functions should be optional in Optional.match

Open fredvollmer opened this issue 5 years ago • 1 comments

Is there any reason why both some and none have to specified in the object passed to the match function? Often times I only need to take action if the Option is defined, so I only want to pass some.

fredvollmer avatar Apr 05 '19 20:04 fredvollmer

There is no particular reason. Probably, We might be able to make both some and none properties optional.

yayoc avatar Apr 06 '19 13:04 yayoc