ordered keywords?
Kent Johnson
kent37 at tds.net
Mon Oct 17 20:46:22 EDT 2005
Ron Adam wrote:
> drawshapes( triangle=3, square=4, color=red,
> polygon(triangle, color),
> polygon(square, color) )
>
> This comes close to the same pattern used in SVG and other formats where
> you have definitions before expressions.
Why is this better than the obvious
triangle=3
square=4
color=red
drawshapes(polygon(triangle, color),
polygon(square, color) )
or even
drawshapes(polygon(3, red),
polygon(4, red) )
which is concise and readable IMO...?
Kent
More information about the Python-list
mailing list