Fork me on GitHub
#cider
<
2015-09-26
>
colin.yates12:09:03

I can’t believe I don’t know this, but if I have a protocol and I want to hold a reference to an Anonymous instance what do I use? I don’t want to create a defrecord and I don’t want to extend-type that protocol to anything. I want the equivalent of

interface MyInterface { void boo(); } x = new MyInterface() { void boo() {…}};
is that what reify does?

colin.yates12:09:03

in the great traditions of ‘talk to the duck’ I think reify is exactly what I want simple_smile

codeitagile20:09:21

@nooga: just saw your Q pop-up a few days back, if you want to switch between projects easy in emacs checkout https://github.com/Bad-ptr/persp-mode.el and https://github.com/bbatsov/projectile/blob/master/persp-projectile.el, a killer combo

codeitagile20:09:22

sorry #C0617A8PQ if that is a bit off-topic

nooga20:09:05

@codeitagile: Thanks, I knew about projectile but was too lazy to get into it

nooga20:09:14

@codeitagile: I’ll check them out

codeitagile20:09:06

persp is the special sauce, try that, but projectile is great too of course, plus a sprinkle of helm naturally simple_smile

codeitagile20:09:33

at least for me, everything started to sing when I added those three together and started switching projects using C-c p p with helm completion

nooga20:09:21

sounds good simple_smile

malabarba20:09:28

That's the package I knew I had tried but couldn't remember the name

malabarba20:09:45

persp(ective)

nooga22:09:32

if only cider would detect the right repl for current buffer

nooga22:09:45

I think somebody said that this is in the works

benedek23:09:32

@nooga: it actually works with latest snapshot, pretty nice