clojure-emacs / clojure-emacs/parseedn

parseedn-print tag readers

Open
#6 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Emacs Lisp
Stars
62
Forks
14
PR merge metrics
No merged PRs in 30d

Description

For `parseedn-read`, we can pass an alist of readers to convert e.g. #uuid into a string.
Could this be done in the inverse operation, `parseedn-print`, as well?
Currently I've just patched it like so:
```
((consp datum)
(cond
((not (listp (cdr datum))) ; dotted pair
(error "Don't know how to print: %s" datum))
((eq 'edn-set (car datum))
(insert "#{") (parseedn-print-seq (cadr datum)) (insert "}"))
+ ((eq 'edn-uuid (car datum))
+ (insert "#uuid ") (parseedn-print-seq (cdr datum)))
(t (insert "(") (parseedn-print-seq datum) (insert ")"))))
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.