Add λ' macro as an alternative to lambda'.

* module/ice-9/boot-9.scm (λ): New macro.

* NEWS: Update.
This commit is contained in:
Ludovic Courtès 2009-09-10 23:58:57 +02:00
commit 87e0037091
2 changed files with 12 additions and 1 deletions

4
NEWS
View file

@ -105,6 +105,8 @@ unlikely that any code out there actually used this functionality.
GOOPS, Guile's object system, used to be documented in separate manuals.
This content is now included in Guile's manual directly.
** Last but not least, the `λ' macro can be used in lieu of `lambda'
** And of course, the usual collection of bugfixes
Interested users should see the ChangeLog for more information.
@ -700,6 +702,8 @@ no effect, and will trigger a deprecation warning.
Instead, use make-typed-array, list->typed-array, or array-type,
respectively.
** Last but not least, the `λ' macro can be used in lieu of `lambda'
* Changes to the C interface
** Guile now uses libgc, the Boehm-Demers-Weiser garbage collector

View file

@ -1,4 +1,4 @@
;;; installed-scm-file
;;; -*- mode: scheme; coding: utf-8; -*-
;;;; Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002,2003,2004,2005,2006,2007,2008,2009
;;;; Free Software Foundation, Inc.
@ -3034,6 +3034,13 @@ module '(ice-9 q) '(make-q q-length))}."
(defmacro name args . body)
(export-syntax name)))))
;; And now for the most important macro.
(define-syntax λ
(syntax-rules ()
((_ formals body ...)
(lambda formals body ...))))
;; Export a local variable
;; This function is called from "modules.c". If you change it, be