[Python-ideas] syntax for set

Boris Borcic bborcic at gmail.com
Mon Nov 22 19:20:33 CET 2010

Ron Adam wrote:
> An interesting "wild" idea might be to delay defining weather it's a
> dictionary or a set depending on how it's first used. Then {} could be
> both an empty set and an empty dictionary, but I think there are
> probably are a lot of reasons not to do that.

I'd say the challenge is wider, there are various corners where a "generic zero 
value/factory" feels like a desirable feature, just waiting to be correctly 

Cheers, BB

More information about the Python-ideas mailing list