[r6rs-discuss] [Formal] body should allow mixing declarationswith expressions

Chongkai Zhu czhu at cs.utah.edu
Mon Mar 12 10:38:05 EDT 2007


+1.

As our motto shows, we should adopt this.

Many people argue that side-effects (and namy others) could lead
to bad style program, but those fearures is in Scheme, right?

Chongkai

----- Original Message ----- 
From: "John Cowan" <cowan at ccil.org>
Cc: <r6rs-discuss at lists.r6rs.org>
Sent: Monday, March 12, 2007 8:15 AM
Subject: Re: [r6rs-discuss] [Formal] body should allow mixing declarationswith expressions
> 
> I, on the other hand, hold it to be good style not to introduce
> new names until necessary (in any programming language); and using
> defines in this fashion reduces the amount of nesting required,
> thus adding to expressiveness.
> 
> I am not alone in this view: the more recently devised members of
> the Algol family of programming languages, namely C++, Java, and C#,
> all allow this style of mid-block declaration.  Scheme too belongs
> to this family (despite its lexical syntax), and I see no reason
> why it should not acquire this facility as well.
> 
> I note that Chicken and scsh already support this style.
> 
> -- 
> John Cowan    http://ccil.org/~cowan  cowan at ccil.org
> 'Tis the Linux rebellion / Let coders take their place,
> The Linux-nationale / Shall Microsoft outpace,
> We can write better programs / Our CPUs won't stall,
> So raise the penguin banner of / The Linux-nationale.  --Greg Baker
> 
> _______________________________________________
> r6rs-discuss mailing list
> r6rs-discuss at lists.r6rs.org
> http://lists.r6rs.org/cgi-bin/mailman/listinfo/r6rs-discuss
>


More information about the r6rs-discuss mailing list