We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Since we're targeting the clojure data format, why not support tag handlers through simple functions instead of requiring a TaggedElement class?
The nice thing is that if you only want to go in one direction, =edn_format.add_tag(myfunc, 'mytag')= already works.
It would be relatively simple to just take one or two functions instead of a class for handlers.
It would also be nice if the module functions like =edn_format.dumps= and =edn_format.loads= took optional functions as parameters for handlers.
The text was updated successfully, but these errors were encountered:
Isn’t that already possible?
>>> from edn_format import add_tag, loads >>> def my_verbose_tag(el): ... print("Hey I got %s" % el) ... return el ... >>> add_tag("verbose", my_verbose_tag) >>> loads("#verbose 42") Hey I got 42 42
Sorry, something went wrong.
Do you mind making a pull-request?
I’m closing this since it doesn’t seem to be an issue. Please reopen if you think it is. Thanks!
No branches or pull requests
Since we're targeting the clojure data format, why not support tag handlers through simple functions instead of requiring a TaggedElement class?
The nice thing is that if you only want to go in one direction, =edn_format.add_tag(myfunc, 'mytag')= already works.
It would be relatively simple to just take one or two functions instead of a class for handlers.
It would also be nice if the module functions like =edn_format.dumps= and =edn_format.loads= took optional functions as parameters for handlers.
The text was updated successfully, but these errors were encountered: