Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
(definterface Foo
(^long bar [^long a ^long b])
(^double bar [^double a ^double b]))
(deftype Baz []
(^long bar [this ^long a ^long b] (+ a b))
(^double bar [this ^double a ^double b] (- a b)))
(.bar (Baz.) (long 1) (long 2)) ;; 3
(.bar (Baz.) (double 1) (double 2)) ;; -1.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.