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

Accept whitespace in Record and Type reader forms

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Completed
    • Affects versions: Release 1.5
    • Fix versions: Release 1.6
    • Labels:
    • Approval:
      Ok
    • Patch:
      Code and Test

      Description

      Whitespace should be allowed in the record reader form as with tagged literals. Following example shows the problem:

      user=> *clojure-version*
      {:major 1, :minor 5, :incremental 1, :qualifier nil}
      user=> (defrecord B [x])
      user.B
      user=> (B. 2)
      #user.B{:x 2}
      user=> #user.B{:x 3}
      #user.B{:x 3}
      user=> #user.B {:x 3}
      RuntimeException Unreadable constructor form starting with "#user.B "  clojure.lang.Util.runtimeException (Util.java:219)
      user=> #inst "2013"
      #inst "2013-01-01T00:00:00.000-00:00"
      user=> #inst"2013"
      #inst "2013-01-01T00:00:00.000-00:00"
      

      Patch: clj-1234-v1.diff

      Screened by: Alex Miller

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              wagjo Jozef Wagner
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: