[r6rs-discuss] Why does begin not have a body?
Jeff Read
bitwize at gmail.com
Fri Oct 13 17:19:46 EDT 2006
On 10/13/06, Alan Watson <alan at alan-watson.org> wrote:
> The behaviour of begin already depend on its context: if it occurs in a
> body, it splices; if it does not, it simply sequences. Why not keep the
> splicing behaviour when it occurs in a body, but have begin introduce a
> new body when it occurs outside of a body?
Its behavior is different, but its scoping rules are the same in
either case. To me this seems cleaner, and makes code easier to read
and comprehend. But I may have simply been soured on Python's
"interesting" scoping rules. :)
--Jeff
More information about the r6rs-discuss
mailing list