This bit me while working on the memory-bounded LRU (no, I obviously did not copy-pasta an existing key 🫣).
I don't think there is a valid use case for calling key twice with the same name but different types, and it can result in annoying to debug runtime behavior since it will silently return the default value for the overwritten key.
This bit me while working on the memory-bounded LRU (no, I obviously did not copy-pasta an existing key 🫣).
I don't think there is a valid use case for calling
key
twice with the same name but different types, and it can result in annoying to debug runtime behavior since it will silently return the default value for the overwritten key.