|
|
|
|
|
by bad_user
5788 days ago
|
|
My problem is that the code linked in the article looks ugly as hell. Even the micro-language created. Compare this ... (filter (and (< :table1/a 5) (= :table1/b "x")) (collect :table1))
To this ... from row in table1
where row.a < 5 and row.b == "x"
Also, compare this ... (collect :projects :invoices [:projects/id :projects/name
(as :inv_id :invoices/id) :invoices/date])
To this ... from proj in projects
from inv in invoices
select { proj.id, proj.name, inv_id => inv.id, inv.date }
For me the ideal programming language would be one readable by humans. |
|
Maybe you still don't like this, but I think it reads a little better for someone used to Clojure.