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

From: Per Bothner <per>
Date: Mon Mar 12 01:43:22 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/
Received on Mon Mar 12 2007 - 01:42:16 UTC

This archive was generated by hypermail 2.3.0 : Wed Oct 23 2024 - 09:15:01 UTC