[Python-ideas] "else if" as equivalent for "elif"

Ryan Gonzalez rymg19 at gmail.com
Wed Oct 21 20:05:01 CEST 2015


The Python Zen says:

There should be one-- and preferably only one --obvious way to do it.

elif uses less typing, anyway. Why type 3 more characters when you really don't need to? :D

On October 21, 2015 12:57:36 PM CDT, Ian Kelly <ian.g.kelly at gmail.com> wrote:
>Parse the sequence "else if" equivalently to "elif".
>
>This would be 100% backward compatible. It wouldn't require adding any
>new keywords to the language. It shouldn't be burdensome to maintain,
>since "elif" only appears in one place in the grammar. And it solves a
>minor readability complaint.
>
>Thoughts?
>_______________________________________________
>Python-ideas mailing list
>Python-ideas at python.org
>https://mail.python.org/mailman/listinfo/python-ideas
>Code of Conduct: http://python.org/psf/codeofconduct/

-- 
Sent from my Nexus 5 with K-9 Mail. Please excuse my brevity.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20151021/5da5fc6c/attachment.html>


More information about the Python-ideas mailing list