Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Brutal: inline deftype/record method implementations *must* be grouped by interface/protocol
=> (deftype Foo [x]
Object
(hashCode [_] 12)
Object
(equals [this other] true))
user.Foo
=> (.hashCode (Foo. ""))
449264711
=> (.hashCode (Foo. ""))
591343845
=> (= (Foo. "") :whatever)
true
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.