Optional and NotNull version 0.5.0 - swift optional like and scala option like

aliak something at something.com
Thu Aug 16 16:15:44 UTC 2018


On Thursday, 16 August 2018 at 15:38:50 UTC, Paul Backus wrote:
> On Thursday, 16 August 2018 at 12:25:14 UTC, aliak wrote:
>> Hi
>>
>> See: https://optional.dub.pm
>
> Looks great!
>
>> auto john = some(new Person());
>
> Would it also work to leave off the `some` here and skip the 
> first `dispatch` in the following lines? (i.e., make `john` a 
> `Person` rather than an `Optional!Person`)


Thanks!
And aye, it should work fine!


More information about the Digitalmars-d-announce mailing list