PEP308: a call for usability studies (was Re: Update to PEP308: if-then-else expression)
Gareth McCaughan
Gareth.McCaughan at pobox.com
Thu Feb 13 17:24:03 EST 2003
Carel Fellinger wrote:
> why stick with our feelings where the pythonic way is to have
> usability studies:) So I wook up my daughters, they know about
> HTML and a little javascript and are big fans of Monty Python.
>
> I showed them the following snippets:
>
> 1) a = 1
>
> 2) if a == 1:
> b = 2
> else:
> b = 3
>
> 3) b = 2 if a==1 else 3
>
> 4) b = (if a==1: 2 else: 3)
[etc]
Try 'em on
b = (if a == 1 then 2 else 3)
and see whether that's any less weird to them than #4.
--
Gareth McCaughan Gareth.McCaughan at pobox.com
.sig under construc
More information about the Python-list
mailing list