core.matrix icon indicating copy to clipboard operation
core.matrix copied to clipboard

Protocols revision

Open si14 opened this issue 12 years ago • 1 comments

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.

si14 avatar Aug 29 '13 15:08 si14

Agree some of these can be merged

We need to do so judiciously:

  • Changing protocols will break core.matrix implementations in most cases
  • Bigger protocols mean that implementers have fewer degrees of freedom when choosing which protocols to implement

mikera avatar Aug 29 '13 17:08 mikera