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
--
http://mail.python.org/mailman/listinfo/python-list