I noticed that in 84d0d3b#diff-9257c021257b8c2773c58e19016dbd9499f0524100e98dd4616f8a9a55e8b13fR33 return types for hashmap_get, hashmap_set, hashmap_delete, and hashmap_probe were changed to constant. This is raising warnings on code that I have written previously.
Before I change the code on my end, I would like to understand the rationale behind this change. If the intent is to discourage changing the underlying bucket data, I understand the change in hashmap_get and hashmap_probe. For hashmap_set and hashmap_delete, however, I don't see the point in keeping the return values constant, since they are no longer managed by the hashmap. Can you explain? Thanks.
I noticed that in 84d0d3b#diff-9257c021257b8c2773c58e19016dbd9499f0524100e98dd4616f8a9a55e8b13fR33 return types for
hashmap_get,hashmap_set,hashmap_delete, andhashmap_probewere changed to constant. This is raising warnings on code that I have written previously.Before I change the code on my end, I would like to understand the rationale behind this change. If the intent is to discourage changing the underlying bucket data, I understand the change in
hashmap_getandhashmap_probe. Forhashmap_setandhashmap_delete, however, I don't see the point in keeping the return values constant, since they are no longer managed by the hashmap. Can you explain? Thanks.