Using `DataType` as key in `Dict`

If this is what you need now, I don’t see any reason to avoid DataType keys. It will be slower than Int keys as you noted (hashing and equality testing is slower), but still reasonably fast, so you shouldn’t worry until this become a bottleneck.

2 Likes