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

clojure.pprint/code-dispatch breaks on certain types of anonymous functions

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects versions: Release 1.5
    • Fix versions: None
    • Labels:

      Description

      (with-out-str 
        (with-pprint-dispatch code-dispatch 
                              (pp/pprint (read-string "(fn* [x] x)"))))
      

      breaks because the format string here: https://github.com/clojure/clojure/blob/master/src/clj/clojure/pprint/dispatch.clj#L378 expects a sequence. In the case of (fn* [x] x) it is passed a symbol.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              devn Devin Walters
            • Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: