guile-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: C++ declaration style programming?


From: Paul Jarc
Subject: Re: C++ declaration style programming?
Date: Wed, 21 Jan 2004 11:06:24 -0500
User-agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.3 (gnu/linux)

Viktor Pavlenko <address@hidden> wrote:
> let* is a binding construct by definition and it is an error to
> bind the same identifier twice (r5rs).

Guile complains about duplicate bindings in let or letrec, but not
let*; the second binding simply shadows the first.  I believe that's
what R5RS specifies.  (So it is possible to accidentally shadow an
existing binding, which may cause trouble in subsequent code similar
to set!.)

> Using side effects to re-bind a variable within the binding
> expression of let* sounds like cheating :)

There are other forms of side effects, like I/O.


paul




reply via email to

[Prev in Thread] Current Thread [Next in Thread]