[Python-ideas] PEP 531: Existence checking operators
Steven D'Aprano
steve at pearwood.info
Sat Oct 29 05:54:54 EDT 2016
On Sat, Oct 29, 2016 at 03:03:22PM +1000, Nick Coghlan wrote:
> On 29 October 2016 at 01:46, Ryan Gonzalez <rymg19 at gmail.com> wrote:
> > On Oct 28, 2016 3:30 AM, "Nick Coghlan" <ncoghlan at gmail.com> wrote:
> >> *snip*
> >> 4. Do we collectively agree that "?then" and "?else" would be
> >> reasonable spellings for such operators?
> >
> > Personally, I find that kind of ugly. What's wrong with just ? instead of
> > ?else?
>
> When you see the expression "LHS ? RHS", there's zero indication of
> how to read it other than naming the symbol: "LHS question mark RHS".
/insert tongue firmly in cheek
We already have hash # bang ! splat * wack / and twiddle ~ so I suggest:
LHS huh? RHS
--
Steve
More information about the Python-ideas
mailing list