Message90202
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. |
|
Date |
User |
Action |
Args |
2009-07-06 23:59:24 | rhettinger | set | recipients:
+ rhettinger, loewis, exarkun, alexandre.vassalotti, QuantumTim, benjamin.peterson, ezio.melotti, hotdog003 |
2009-07-06 23:59:24 | rhettinger | set | messageid: <1246924764.3.0.0500539799218.issue6410@psf.upfronthosting.co.za> |
2009-07-06 23:59:22 | rhettinger | link | issue6410 messages |
2009-07-06 23:59:21 | rhettinger | create | |
|