4 ms·
1.hmm, well, if you try it you'll see that at least in the area of programming languages, after spending some time you'll see that you reinvented s-expressions.
by ilkhd2 18y ago
1.hmm, well, if you try it you'll see
that at least in the area of programming languages, after
spending some time you'll see that you reinvented s-expressions.
2. can be very interesting to see for example
this (sum of every vector-element) in json/yaml...
(defn sum-vec [vec]
(let [vec-len (count vec)]
(loop [idx 0 acc 0]
(if (< idx vec-len)
(recur (inc idx) (+ acc (vec idx)))
acc))))
- smallpaul 18y agoI don't want that in my json/yaml. If I have Javascript then I already have mobile code. If I'm using json in a situation where I don't have a Javascript interpreter, then I probably don't have a Lisp interpreter around either.
- failrate 18y agoA decent JSON parser is also only a day's worth of work or less in just about any language. My experience is that it is as little as and possibly less initial development and maintenance as a custom flat-file format or a really robust csv parser.