List of all syntactic sugar?

Diez B. Roggisch deets at nospam.web.de
Fri Apr 14 08:45:56 EDT 2006


> That kind of depends on what you mean by syntactic sugar. For instance, I
> wouldn't call any of your examples syntactic sugar. 

AFAIK that is exactly what syntactic sugar means. Apart from non-strictness,
all syntax can be expressed by function application. Even 

foo.bar()

is nothing but

bar(self)

So - he used the term right I'd say.

Regards,

Diez



More information about the Python-list mailing list