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

integer (32-bit) bit operations not available

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Declined
    • Affects versions: Release 1.7, Release 1.6, Release 1.8, Release 1.5, Release 1.4
    • Fix versions: None
    • Labels:

      Description

      It would be nice if Clojure provided implementations for all Java
      operators, using primitive types. While Clojures numbers handling is
      nice, there are algorithms for which it is a pain.

      Clojure currently provides a number of functions to deal with this:
      unchecked-add and unchecked-add-int, for instance. But, not all of the
      Java operators are accessible in this way, at least to my knowledge;
      specifically, the "&" and "|" operators have no function
      equivalents. Actually, they are still present in source (Numbers.java)
      but have been commented out. I can't really understand the reason for
      this omission.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              alex+import import
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: