Outdated egg!
This is an egg for CHICKEN 4, the unsupported old release. You're almost certainly looking for the CHICKEN 5 version of this egg, if it exists.
If it does not exist, there may be equivalent functionality provided by another egg; have a look at the egg index. Otherwise, please consider porting this egg to the current version of CHICKEN.
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.2
- add license field to .meta
- 0.1
- initial release