3 ms·
To what extent are legal EDN and Transit compatible? Are there types that appear in one and not the other? How does the extension mechanism compare? Would it b
by jacobolus 12y ago
To what extent are legal EDN and Transit compatible? Are there types that appear in one and not the other? How does the extension mechanism compare?
Would it be possible to make a 2-way converter between them which would retain full fidelity of the Transit data when round-tripping, so that we could use EDN for actually inspecting/writing (e.g. config files), but then send Transit over the wire to a browser?
- puredanger 12y agoEDN and Transit are different formats but share a common philosophy towards types and extensions (as they originate from the same place). There are likely small differences in what types appear in both. The extension mechanisms are different but of equivalent expressive power. I don't think it would be difficult to convert between EDN and Transit using existing readers and writers for both. The common meeting point is values in your language.
- dgreensp 12y agoFrom the examples, it looks like JSON and EDN are both first-class "transport" formats for Transit: https://github.com/cognitect/transit-format/tree/master/examples/0.8/simple https://github.com/cognitect/transit-format/tree/master/exam...