|
It amazes me how programming languages and APIs look more and more like Lisp. Modern languages copy essential features from Lisp, and JSON as one of the most popular JS libs almost look identical to Lisp s-expressions. Someday also more people will realize how useful and effective the equivalence of control structures and data really is. JSON:
{
"posts": {
"id": "1",
"title": "Rails is Omakase",
"rels": {
"author": 9,
"comments": [ 5, 12, 17, 20 ]
}
}
} LISP:
(posts
(id 1)
(title "Rails is Omakase")
(rels
(author 9)
(comments (5 12 17 20)))) |
No matter what kind of code I'm looking at: "could I express this as s-expressions?" Sure. "Would I want to?" Hell no.