Until now jopt related combinators worked only with options.
With this PR we can make it work with voption, Nullable, lists and in general with any type which support the Zero operation.
While testing this I realized jopt has the same problem with recursion as jreq so it needs to call a lazy version.
This wasn't evident as we didn't have a test with a recursive option value and the jopt combinator.
Until now
jopt
related combinators worked only with options.With this PR we can make it work with
voption
,Nullable
, lists and in general with any type which support theZero
operation.While testing this I realized
jopt
has the same problem with recursion asjreq
so it needs to call a lazy version. This wasn't evident as we didn't have a test with a recursive option value and thejopt
combinator.