On 29/08/2019 15:32:38, Philippe Prados wrote:
I try with +fooin 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 <ri...@teachey.org <mailto:ri...@teachey.org>> 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.

This might be a nonsensical suggestion:-) as I don't understand annotations, but would it be possible to use one of
    (foo)
    [foo]
or some such?
Rob Cliffe


<http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient> Virus-free. www.avg.com <http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient>

<#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>

_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/python-ideas@python.org/message/QKHDIZADPWGFHPN4DZWX7E7THXSZ7RBY/
Code of Conduct: http://python.org/psf/codeofconduct/

_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/python-ideas@python.org/message/UTA2PU25W75MDP3CSZTNDS7X74SA27NH/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to