>Specifically, I like to write my code in a top-down. > >What I mean by that is that within a file the highest-level functions sit >at the top, and are implemented in terms of lower-level functions further >down. > >The idea is that through sensible naming, a reader should be able to stop >reading at any point and still know what's going on.
In a functional programming language each function ought to be independent and insensitive to order. Unfortunately, Clojure is sensitive to order, as you can see. Your top-down style of programming is really useful. You might consider using a tangle function (It is only a few lines of code) to extract the code in the order the compiler likes. This would allow you to continue to write in the order humans like. Instead of calling load to read the file, call your tangle function. Tim Daly -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.