juxt / aero

A small library for explicit, intentful configuration.
MIT License
747 stars 60 forks source link

Support for regexps #108

Closed abcdw closed 1 year ago

abcdw commented 1 year ago

Is there a way to properly read regexp literals by default?

I would like to read edn file with content like this using aero: {:regexp #"regexp-here"}

Right now it complains: "No dispatch macro for: \""

SevereOverfl0w commented 1 year ago

EDN doesn't support regex. One idea might be to use https://github.com/borkdude/edamame/ which would also give the opportunity for better error messages.

abcdw commented 1 year ago

@SevereOverfl0w edamame looks great, thank you very much for the mentioning it. I'm curious how hard to implement #ref with edamame.