3 ms·
> Every part of your system must now know the hash structure you're using and often reproduce logic in many places like dealing with optional keys that may be m
by jdc 11y ago
> Every part of your system must now know the hash structure you're using and often reproduce logic in many places like dealing with optional keys that may be missing.
Why not just write accessors and mutators for your hashes? Also, Python hash a function dict.get(key, default). Does Ruby not have this?