You are looking at historical revision 19480 of this page. It may differ significantly from its current revision.

syn-param

Introduction

Operators with exended parameter syntax

Usage

(require-extension syn-param)

Documentation

[syntax] (with-extended-parameter-operators ((NAME (PROCEDURE (PARAM . DEFAULT) ...)) ...) BODY ...)

Provides local procedures available as NAME ... that when invoked allow passing named parameters to the corresponding PROCEDURE ... using the (=> PARAM VALUE) syntax. For example:

(define (foo x y z) ...)

(with-extended-parameter-operators
    ((foo* (foo (x . 0) (y . 0) (z . 0))))
  (foo* 5 (=> z 3) (=> y 1)))

<=>

(foo 5 1 3)

Author

Taylor R. Campbell

License

This code is written by Taylor R. Campbell and placed in the Public Domain. All warranties are disclaimed.

Version History

0.1
initial release