brandonbloom / fipp

Fast Idiomatic Pretty Printer for Clojure
525 stars 44 forks source link

Pretty Printing of 'nil' #5

Closed xsc closed 11 years ago

xsc commented 11 years ago

Fix for Exception thrown when trying to pprint a value containing nil:

(fipp.edn/pprint nil)
; => IllegalArgumentException No implementation of method: :-pretty of 
;    protocol: #'fipp.edn/IPretty found for class: nil  clojure.core/
;    -cache-protocol-fn (core_deftype.clj:541)

(fipp.edn/pprint {:a nil})
; => IllegalArgumentException No implementation of method: :-pretty of 
;    protocol: #'fipp.edn/IPretty found for class: nil  clojure.core/
;    -cache-protocol-fn (core_deftype.clj:541)

(Broke some code for me after switching from 0.1.0-SNAPSHOT to 0.3.0-SNAPSHOT.)

brandonbloom commented 11 years ago

D'oh! Must have broke that when I switched to protocols for speed. Thanks for the fix!

brandonbloom commented 11 years ago

0.3.0-SNAPSHOT redeployed.