New answers tagged clojure
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 ...
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 ...
Top 50 recent answers are included
Related Tags
clojure × 91functional-programming × 22
lisp × 16
haskell × 13
scala × 10
java × 7
design × 5
concurrency × 5
macros × 5
scheme × 4
python × 3
jvm × 3
stm × 3
data-structures × 2
learning × 2
functions × 2
ruby × 2
syntax × 2
immutability × 2
go × 2
random × 2
namespace × 2
map × 2
erlang × 2
object-oriented × 1