cljs-dev

quoll 2023-10-06T21:41:22.537679Z

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
borkdude 2023-10-06T21:47:06.836279Z

Maybe a too old version of ClojureScript?

quoll 2023-10-06T21:47:24.414269Z

oh! That’s probably it. Thank you

quoll 2023-10-06T21:49:46.447549Z

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

quoll 2023-10-06T21:49:50.623809Z

Thank you again

👍 2