map/filter/reduce/lambda opinions and background unscientificmini-survey
Ron Adam
rrr at ronadam.com
Wed Jul 6 00:34:46 EDT 2005
Terry Reedy wrote:
> "George Sakkis" <gsakkis at rutgers.edu> wrote in message
>>So, who would object the full-word versions for python 3K ?
>>def -> define
>>del -> delete
>>exec -> execute
>
>
> These three I might prefer to keep.
>
>
>>elif -> else if
>
>
> This one I dislike and would prefer to write out. I never liked it in
> whatever else language I first encountered it and still don't.
>
> Terry J. Reedy
Interesting, the exact opposite of what I was thinking.
I don't use del and exec that often, so the long versions are fine to
me. Define is ok for me too because it's usually done only once for
each function or method so I'm not apt to have a lot of defines repeated
in a short space like you would in C declarations.
elif... I was thinking we should keep that one because it's used fairly
often and having two keywords in sequence doesn't seem like it's the
beat way to do it.
Although it could be replaced with an 'andif' and 'orif' pair. The
'andif' would fall though like a C 'case', and the 'orif' would act just
like the 'elif'. Actually this is a completely differnt subject
reguarding flow testing verses value testing. Else and also would be
the coorisponding end pair, but it seemed nobody really liked that idea
when I suggested it a while back. <shrug>
Cheers,
Ron
More information about the Python-list
mailing list