guile-user
[Top][All Lists]
Advanced

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

(ice-9 nice-9) module update


From: Panicz Maciej Godek
Subject: (ice-9 nice-9) module update
Date: Wed, 2 Sep 2015 14:09:37 +0200

As a follow-up to the thread https://lists.gnu.org/archive/html/guile-devel/2015-06/msg00023.html I announce that I made an update to the (ice-9 nice-9) module. It no longer re-exports every, any and count, but instead it replaces two other bindings:

- define-syntax is now blended with define-syntax-rule, so that if one writes

(define-syntax (name . pattern) . substitution)

the effect will be the same as if she wrote

(define-syntax name (syntax-rules () ((name .  pattern) . substitution)))

I think that there's no need to use "define-syntax-rule".

- let-syntax behaves similarly, i.e.

(let-syntax (((name . pattern) replacement)))
  ....)

transforms to

(let-syntax ((name (syntax-rules () ((name . pattern) replacement)))
  ....)

Any comments and suggestions are appreciated.

Best regards,
M.

Attachment: nice-9.scm
Description: Text Data


reply via email to

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