Proposal: allow '?' and '!' in identifiers
Nathan Gray
n8gray at caltech.edu.is.my.e-mail.address
Tue Feb 20 22:49:05 EST 2001
Christoph Horst wrote:
> Nathaniel Gray <n8gray at caltech.edu.is.my.email.address> wrote:
>
>> IMHO it's not worth adding "!", but if "?" doesn't break anything then it's
>> a net gain. I assert that it _would_ make Python more expressive to add an
>> elegant way of indicating that a function returns only boolean values.
>
>
> What's wrong with prefixing the function name with 'is'?
Nothing. I just find it pleasingly clear to read languages where
predicates end with '?'. It's simple and elegant.
Like I said, though, I'd be very surprised if this proposal ends up
being accepted.
--
_.~'^`~._.~'^`~._.~'^`~._.~'^`~._.~'^`~._
Nathaniel Gray
California Institute of Technology
Computation and Neural Systems
n8gray <at> caltech <dot> edu
_.~'^`~._.~'^`~._.~'^`~._.~'^`~._.~'^`~._
More information about the Python-list
mailing list