On Jul 20, 2010, at 9:14 AM, Lee Spector wrote:
On Jul 20, 2010, at 4:18 AM, Laurent PETIT wrote:
Lee, did you remove the automatic build-on-save behavior because
you "feared" that it would give annoyances to you, or because you
encountered annoyances and wanted to get rid of them ? If the
latter, could you please expand on what the annoyances were for
you ? (maybe your annoyance inherently imply to trigger the
behavior of, maybe there are alternative solutions to be found to
get the best of both worlds).
It annoyed me inherently that behaviors were being automatically
triggered. FWIW I sometimes include top-level calls in my files, not
just definitions (maybe this is a Lisp-world practice that I should
get over? It seems not to be done much in the Clojure world (?)),
and I was seeing all of my top-level calls being run over and over
again every time I saved a file. Definitely annoying, from my
perspective.
Top-level calls are definitely frowned upon (and almost never
necessary). Almost by definition, they're side-effecting, and you're
not always in control of when code is loaded (e.g. if someone is using
your code as a library, top-level calls are decidedly irritating).
- Chas
--
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