Fork me on GitHub
#cljs-dev
<
2023-10-06
>
quoll21:10:22

In trying to deftype a structure, I tried to include IDrop, however, the compiler doesn’t recognize this. So I tried things at a repl, and discovered that if I type almost any protocol from cljs.core then it prints a value of #object[Function]. However, this is not the case for IDrop:

cljs.user=> INext
#object[Function]
cljs.user=> ISwap
#object[Function]
cljs.user=> IVolatile
#object[Function]
cljs.user=> IIterable
#object[Function]
cljs.user=> IDrop
WARNING: Use of undeclared Var cljs.user/IDrop at line 1 <cljs repl>
nil
Is there something special about IDrop that I’m not seeing?

🎉 1
borkdude21:10:06

Maybe a too old version of ClojureScript?

quoll21:10:24

oh! That’s probably it. Thank you

quoll21:10:46

Yes, IDrop was introduced since the last ClojureScript release (1.11.60)

quoll21:10:50

Thank you again

👍 2