Re:Why MIT switched from Scheme to Python
by smallpaul on Wednesday March 25, 2009 @11:51AM
(#531944)
I 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.
Re:Why MIT switched from Scheme to Python
by failrate on Wednesday March 25, 2009 @02:33PM
(#532210)
A 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.
(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))))