Fork me on GitHub
#clojure-dev
<
2020-01-24
>
gfredericks11:01:38

does IRef predate IDeref?

borkdude11:01:41

seems it does

Alex Miller (Clojure team)13:01:38

It seems like no matter how small you make an interface, you later on find a use case that only needs part of it

Alex Miller (Clojure team)13:01:04

That is, the ideal number of methods on an interface seems to be 1

16
p-himik13:01:49

Or <= 1 (`clojure.lang.{IRecord,IType,MapEquivalence,Sequential,etc}`) :)

Alex Miller (Clojure team)14:01:38

I'd still say the ideal is 1 - marker interfaces not being much of an affordance to do stuff, just to annotate stuff

mikerod15:01:59

too bad you can’t have negative interfaces - only define what you can’t do

🤯 12
mikerod15:01:10

perhaps the ideal number would be -1