2014-07-10 19:10 GMT+02:00 Softaddicts <lprefonta...@softaddicts.ca>:
> The fn that does the display is the one having side effects. > Now if your look fn creates the side effect, it should reflect that in its > name. > Look discribes the current location. So it has a side-effect, but as I understood from others it is not about side-effects, but global state. That does not change, so I should not use the '!'. > But... I wonder why it does so. Looking at something does not change state. > No, it does not change state, but it prints the description. So it has a side effect. It is not pure, but it is idempotent. -- Cecil Westerhof -- 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.