mkremins / flense

Edit trees, not text
MIT License
101 stars 3 forks source link

Better layout algorithms for clojure.core macros #19

Closed mkremins closed 10 years ago

mkremins commented 10 years ago

There's a bunch of clojure.core macros that will need to be given their own specific layout algorithms to make Flense's rendering consistent with idiomatic textual Clojure source code. These seem to fall into several loose "families":

Of course, some core macros (if-let and when-let come to mind) share traits from two or more of these families, but generally speaking this loose classification should be sufficient to guide the implementation of most of the necessary layout algorithms.

mkremins commented 10 years ago

Commits a70577895eab3b657526636acce142e170a48bd8 through 7d4dad80ac8af84ea0b1953446d2707cb2259092 implement better layout algorithms for most clojure.core macros.