Welcome! Please see the About page for a little more info on how this works.

+1 vote
in Contrib libs by

How do I get support for byte sequences to EDN? One implementation might be from adopting the mechanism used by Bencode: https://wiki.theory.org/index.php/BitTorrentSpecification#Bencoding

This still requires some context and doesn't allow for top level direct arbitrary binary to be accepted as valid. I'm not sure this is the best method, but I do need some way to represent arbitrary binary blobs well. One thing to also consider is interrupted data, which bencode's approach does not work well with. That might always be an application level concern, I'm not sure.

1 Answer

+1 vote
by

I think it's unlikely this will be added to edn proper. You could use either a string encoding or tagged literals to add this for your uses though without requiring anything be added to edn.

...