users@jsonb-spec.java.net

[jsonb-spec users] [jsr367-experts] Re: [2-DefaultMapping] Proposal

From: Martin Grebac <martin.grebac_at_oracle.com>
Date: Wed, 25 Feb 2015 14:27:30 +0100

On 25.02.15 8:44, Przemyslaw Bielicki wrote:
>> The trouble with Optional is that it is typed, and as such its use is too complex within the api methods we have now compared to the minimal benefit it brings.
> Anyway I think it should be impl specific feature - sorry for the noise.
After re-reading I think I may have been too fast and misunderstood the
usecase. Before I jump into my rant on Optional :) , would you please
give some examples of the expected outcomes, say based on MartinV's
default mapping examples?

I think it makes sense to get some clarity into this and make decisions
whether the support for Optional should be in the spec, whether it
should be default, and whether it should be spec defined configuration,
mostly because Optional has value wrt lambdas. Thus I also expect the
reasoning will likely have to include the expected stream use? I don't
find Optional bringing any significant value outside of streams.

  MartiNG