4 ms·
I do not understand what do you mean by "carried around as data", a s-expr is data. Could you give me an example where you can't use the first form?
by gosub 15y ago
I do not understand what do you mean by "carried around as data", a s-expr is data. Could you give me an example where you can't use the first form?
- spacemanaki 15y agoI think the issue is that in order to use the first form, you would need to eval the s-expr after reading it, which is potentially dangerous and fragile. But also, ClojureScript doesn't have run-time eval. Of course, you could interpret the s-expr as some kind of tagged list (or more likely use a vector like [:uuid "550..."]) and instead of eval-ing check the first element etc, but at that point, why not have an extensible reader do that for you?