News for hackers. Stuff that matters.
Re:The Roots of Lisp (2002) [pdf] by davexunit on Monday September 22, 2014 @11:32AM (#8350960)
Your JSON snippet is reminiscent of SXML, a format for describing XML/HTML as s-expressions. The difference being that, using quasiquote and unquote, Lisps are full-fledged templating languages.

Here's a simple template written in Scheme:

  (define stuff '("foo" "bar" "baz"))
  
  `(ul (@ (class "foo"))
       ,@(map (lambda (thing)
                `(li ,thing))
              stuff))
Output:

  (ul (@ (class "foo")) (li "foo") (li "bar") (li "baz"))
Fun stuff!

There are no comments on this comment yet.