3 ms·
I wish we had only maps and only with either strings or atoms as keys. I ended up too many times with code that failed because it got a string as a key instead
by pmontra 5y ago
I wish we had only maps and only with either strings or atoms as keys. I ended up too many times with code that failed because it got a string as a key instead of an atom or viceversa.
- brobinson 5y agoReminds me of the following from my Ruby/Rails days: https://api.rubyonrails.org/classes/ActiveSupport/HashWithIndifferentAccess.html https://api.rubyonrails.org/classes/ActiveSupport/HashWithIn...