Stephan Schmidt wrote:
> Hey,
> 
> from the developers of Fan who implemented Not-Null-Types in Fan (I
> think modeled after Nice)
> some said  after converting their complete API to default not-null:
> 
> "So only 16% of all the slots use nullable types. Only 8% of all
> methods return a nullable type. So empirical evidence does indeed
> suggest that non-nullable is the common case."
> 
> http://www.fandev.org/sidewalk/topic/372
> 
> So it's much more sensible to have @Optional than @NotNull

Yes, I think Niclas even referred to that case as the rationale, and my 
experience also tells me that it is correct. In any case, Optional feels 
much more domain-oriented than NotNull :-)

I'm in the process of implementing it right now.

/Rickard


_______________________________________________
qi4j-dev mailing list
[email protected]
http://lists.ops4j.org/mailman/listinfo/qi4j-dev

Reply via email to