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

structs printed with *print-dup* true cannot be read

    Details

    • Type: Bug
    • Status: Closed
    • Resolution: Declined
    • Affects versions: None
    • Fix versions: Backlog
    • Labels:
      None

      Description

      (defstruct thing :a :b)
      (def my-thing (struct thing 1 2))
      (def s (binding [*print-dup* true] (pr-str my-thing)))
      s 
      ;;=> "#=(clojure.lang.PersistentStructMap/create {:a 1, :b 2})"
      (read-string s)
      ;;=> java.lang.IllegalArgumentException:
      ;;   No matching method found: create
      

        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: