Skip to main content

New answers tagged

0 votes

"Use map instead of class to represent data" -Rich Hickey

Here, a Person is given as a map from String to Object. Your map might for example contain three Strings "Name", "Address" and "Date of birth". The API does not know what ...
gnasher729's user avatar
  • 47.5k
0 votes

"Use map instead of class to represent data" -Rich Hickey

Death by Specificity Using a map is better than inventing a new class because maps have a consistent interface. From Clojure Made Simple (video excerpt, transcript): Most information objects are just ...
Dave's user avatar
  • 113

Top 50 recent answers are included