22 Nov
2010
22 Nov
'10
6:20 p.m.
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 designed... Cheers, BB