[r6rs-discuss] [Formal] body should allow mixing declarations with expressions

Per Bothner per at bothner.com
Mon Mar 12 01:42:16 EDT 2007


Abdulaziz Ghuloum wrote:
> 
> On Mar 11, 2007, at 4:13 PM, Per Bothner wrote:
> 
>> "Programming languages should be designed not by piling
>> feature on top of feature, but by removing the weaknesses
>> and restrictions that make additional features appear
>> necessary."
> 
> Sorry.  What additional features would be required to support
> what you want to do (mixing definitions and expressions)?

None that I can think of.

> I can't think of any since I can already mix definitions and
> expressions with minimal difficulty and without requiring any
> feature that's not already in the language.

Right - you can replace
   EXPR
by
   (define UNUSED1 (begin EXPR (unspecified)))
which is what 5.92 does for top-level bodies.
-- 
	--Per Bothner
per at bothner.com   http://per.bothner.com/



More information about the r6rs-discuss mailing list