Message213360
I asked this because, for example, in Haskell it *is* a well-defined behaviour (see its documentation at: http://hackage.haskell.org/package/containers-0.5.4.0/docs/Data-Set.html): the left operand is preferred by all operations.
In fact, working with Haskell, I also have used such behaviour in the past. For example when writing a simple type-checker it's quite convenient to use such behaviour when handling environments where you want inner blocks to hide outer variables. Not defining such behaviour means that you must re-implement the wheel in order to achieve the correct behaviour.
In any case, this information should be made explicit in the docs, whether we want to make the behaviour defined or not. |
|
Date |
User |
Action |
Args |
2014-03-13 07:55:40 | Giacomo.Alzetta | set | recipients:
+ Giacomo.Alzetta, rhettinger, stutzbach, steven.daprano, r.david.murray, docs@python, Balakrishnan.B |
2014-03-13 07:55:40 | Giacomo.Alzetta | set | messageid: <1394697340.64.0.303811655417.issue20902@psf.upfronthosting.co.za> |
2014-03-13 07:55:40 | Giacomo.Alzetta | link | issue20902 messages |
2014-03-13 07:55:40 | Giacomo.Alzetta | create | |
|