Welcome! Please see the About page for a little more info on how this works.

0 votes
in Compiler by

Enhance deftypes to allow fields to be marked ACC_TRANSIENT.

strawman syntax:
(deftype AType (link: ^:transient hash))

Came across this need while experimenting with a (link: https://github.com/ghadishayban/clojure/commit/906cd6ed4d7c624dc4e553373dabfd57550eeff2 text: reified range written in a deftype), not in Java.

Patch doesn't include docstring change, but has a test.

3 Answers

0 votes
by

Comment made by: adrianm

Perhaps ^:transient-mutable would be a more appropriate modifier name to be consistent with the ^:unsynchronized-mutable and ^:volatile-mutable field modifiers. In any event, this feature would eliminate the need to drop down to Java for types that require transient fields.

0 votes
by

Comment made by: jafingerhut

Roberto, there is a "Vote" word you can click on to actually vote for tickets, and ticket wranglers actually look at those votes at times to examine popular ones sooner. +1 comments don't do that.

0 votes
by
Reference: https://clojure.atlassian.net/browse/CLJ-1573 (reported by gshayban)
...