On 02/28/2011 08:32 AM, Russel Winder wrote:
Thoughts?
The Python mechanism relies on the fact that despatch is by name and not
by signature. Languages that dispatch by signature will have
significantly greater problems!
The Python system also has a weak point: confusion of 'optional' and 'default'
notions. These are 2 orthogonal aspects python forces you to mess up. There are
optional args with no default values, and mandatory ones with defaults.
If you want to define an optional arg, python wants you to "invent" a fake
default value. This is bad --even more in that it tends to load 'None'(common
choice for fake value) with application semantics.
Denis
--
_________________
vita es estrany
spir.wikidot.com