Message312100
Do data classes let you define some fields as being excluded from the equality/ordering/hashing? I got the impression that if a field existed, it was part of the "key" no matter what, which isn't necessarily correct in the general case. Simple examples would be attributes that equivalent C++ would tag with the mutable keyword; they're not part of the logical state of the instance (e.g. debugging counters or whatever), so they shouldn't be included in the "key". |
|
Date |
User |
Action |
Args |
2018-02-13 04:12:06 | josh.r | set | recipients:
+ josh.r, rhettinger, ncoghlan, pitrou, scoder, cvrebert, martin.panter, cheryl.sabella |
2018-02-13 04:12:06 | josh.r | set | messageid: <1518495126.84.0.467229070634.issue20632@psf.upfronthosting.co.za> |
2018-02-13 04:12:06 | josh.r | link | issue20632 messages |
2018-02-13 04:12:06 | josh.r | create | |
|