Support (Java) transient fields in deftype, e.g. for hashcodes

Description

Enhance deftypes to allow fields to be marked ACC_TRANSIENT.

strawman syntax:
(deftype AType [^:transient hash])

Came across this need while experimenting with a reified range written in a deftype, not in Java.

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

Environment

None

Activity

Show:
Adrian Medina
December 29, 2014, 5:54 PM

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.

Andy Fingerhut
December 29, 2014, 6:07 PM

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.

Assignee

Unassigned

Reporter

Ghadi Shayban

Labels

Approval

None

Patch

Code and Test

Priority

Minor