Protocal and destruturing
Unfortunately, we cannot use destruturing or rest arguments
in the specification of those methods within the
I want to write an interface:
But it is illegal! The compilication will be failed:
Caused by: java.lang.IllegalArgumentException: Can't define method not in interfaces: put
However, because protocols generate a JVM interface, which cannot support all the argument structure variations that Clojure functions provide, methodName is taken to be a method that accepts 2 arguments, not 3, not 4, not 5!