guile-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: User perception on backward compatibility


From: Kjetil S. Matheussen
Subject: Re: User perception on backward compatibility
Date: Thu, 21 Jan 2010 18:36:13 +0100 (CET)


Thien-Thi Nguyen:

  I think the next big task will be to list and try to reduce
  incompatibilities compared to 1.8.

Yes, please.

At the moment, i would ask you to look at the guile-user message
w/ subject "(define ((f a) b) ...)".


I agree about this. IMO it's very elegant, and also
(probably) the simplest way to expand define:

(define-macro (define def . rest)
  (if (pair? def)
      `(define ,(car def)
         (lambda ,(cdr def)
           ,@rest))
      `(internal-define ,def ,@rest)))

=> (macroexpand '(define ((f a) b) ...))
(internal-define f (lambda (a) (lambda (b) ...)))





reply via email to

[Prev in Thread] Current Thread [Next in Thread]