[r6rs-discuss] [Formal] defer lambda rather than define rhs when expanding body

From: Per Bothner <per>
Date: Mon Mar 12 12:42:48 2007

Abdulaziz Ghuloum wrote:
> So, according to your proposal, should the following examples be allowed or
> disallowed to come before a (define-syntax MAC ---):
>
> 1. (define t1 (cons (MAC) #f))
> 2. (define t2 (cons (lambda () (MAC)) #f))
> 3. (define t3 (let ([x (MAC)]) x))
> 4. (define t4 (let () (MAC)))
> 5. (define t5 (cond [foo => (MAC)]))
> 6. (define t6 (if #f (MAC)))

2, 4, and 5 would be allowed. The others would not be.
(Though I'm not opposed to tweaking the proposal to
change some of these if it makes sense.)
-- 
	--Per Bothner
per_at_bothner.com   http://per.bothner.com/
Received on Mon Mar 12 2007 - 12:41:38 UTC

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