Timeline for Working with "external" object identifiers
Current License: CC BY-SA 4.0
4 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jun 22, 2020 at 17:32 | comment | added | Anakhand |
@Caleth Yep, just noticed that myself too. For example, one wouldn't be able to use dict in Python since that has the precondition that all keys are immutable to be able to keep the internal invariants. (In fact the previous code didn't work; I was violating the contract of __hash__.) So this would degrade the performance of the mapping to linear look-up.
|
|
| Jun 22, 2020 at 17:29 | history | edited | Anakhand | CC BY-SA 4.0 |
added 63 characters in body
|
| Jun 22, 2020 at 17:19 | comment | added | Caleth |
This assumes that modifying the key of an associative container still let's you look it up. Is this true with other entries in my_instances?
|
|
| Jun 22, 2020 at 17:09 | history | answered | Anakhand | CC BY-SA 4.0 |