mikera / core.matrix

core.matrix : Multi-dimensional array programming API for Clojure
Other
699 stars 113 forks source link

Protocols revision #61

Open si14 opened 11 years ago

si14 commented 11 years ago

We need to revise distribution of methods between protocols at some point. Here is an example why this is needed:

(defprotocol PZeroDimensionAccess 
  (get-0d [m])
  (set-0d! [m value]))

(defprotocol PZeroDimensionSet
  (set-0d [m value]))

There is no semantic reason why this two protocols should be different.

mikera commented 11 years ago

Agree some of these can be merged

We need to do so judiciously: