I try with +foo in place of ~foo.
Kotlin propose the null-safety
<https://kotlinlang.org/docs/reference/null-safety.html> with foo?, but
this syntax has a impact of the BNF and all others tools.

Le jeu. 29 août 2019 à 15:58, Ricky Teachey <[email protected]> a écrit :

> I like this idea.
>
>
>> The ~foo for Optional is... not that obvious.  Not sure it's a win.
>>
>>
>  I agree. Seems like `foo | None` is just as readable. Assuming that None
> would be swapped out for NoneType, of course.
>
_______________________________________________
Python-ideas mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/[email protected]/message/QKHDIZADPWGFHPN4DZWX7E7THXSZ7RBY/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to