On Mon, Feb 22, 2010 at 3:51 PM, Peter T <[email protected]> wrote:

> Hi all,
>


> Wouldn't it make sense to limit let to a single body/expression
> argument, and otherwise require the explicit use of do?
>
> I realize that'd be rather verbose, but it'd seem to also help make
> the presence of side effects more apparent - which is a priority,
> isn't it?
>

It would be really, really annoying. You often want to throw in a println
for some simple debugging. Also libraries such Penumbra (OpenGL bindings)
are inherently about side effects as is any library dealing heavily in
graphics, audio, interactivity. Clojure was designed to address these kinds
of applications in straightforward manner as well.

It seems to me that Clojure isn't against side effects, it's about managing
state. Implicit do is pragmatic, not dogmatic.


>
> Am just curious what the rationale is behind the implicit do.
>
>
> Kind regards,
> Peter
>

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to