Uploaded image for project: 'Clojure'
  1. CLJ-1573

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

    Details

    • Type: New Feature
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects versions: None
    • Fix versions: None
    • Labels:
    • Patch:
      Code and Test

      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.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              gshayban Ghadi Shayban
            • Votes:
              2 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: