Author rhettinger
Recipients QuantumTim, alexandre.vassalotti, benjamin.peterson, exarkun, ezio.melotti, hotdog003, loewis, rhettinger
Date 2009-07-06.23:59:21
SpamBayes Score 6.69395e-06
Marked as misclassified No
Message-id <1246924764.3.0.0500539799218.issue6410@psf.upfronthosting.co.za>
In-reply-to
Content
ISTM these examples show how little value would come from fattening-up
the dict API.  The examples use the copy/update pattern which is clear,
explicit, and extendable to n-ary cases without incurring O(n**2)
behavior.  Tranforming them to a f=d+e pattern saves a few characters;
doesn't add any speed; makes it less clear that we're operating on
dictionaries; and does not extend well to the n-ary case (f=a+b+c+d+e
which copies a's elements five times, b's four times, etc.)  No new
functionality gets added -- all this is is a piece of syntactic sugar
that obscures what is going-on under the hood.  The dict API is one of
the most fundamental in the language; it needs to be kept as clean and
hazard-free as possible.
History
Date User Action Args
2009-07-06 23:59:24rhettingersetrecipients: + rhettinger, loewis, exarkun, alexandre.vassalotti, QuantumTim, benjamin.peterson, ezio.melotti, hotdog003
2009-07-06 23:59:24rhettingersetmessageid: <1246924764.3.0.0500539799218.issue6410@psf.upfronthosting.co.za>
2009-07-06 23:59:22rhettingerlinkissue6410 messages
2009-07-06 23:59:21rhettingercreate