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

does IRef predate IDeref?

borkdude11:01:41

seems it does

alexmiller13: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

alexmiller13:01:04

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

4
p-himik13:01:49

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

alexmiller14: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

🤯 3
mikerod15:01:10

perhaps the ideal number would be -1