[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Scheme-reports] multiple values module
- To: Andy Wingo <wingo@x>
- Subject: Re: [Scheme-reports] multiple values module
- From: John Cowan <cowan@x>
- Date: Thu, 19 May 2011 18:10:06 -0400
- Cc: scheme-reports <scheme-reports@x>
- In-reply-to: <email@example.com>
- References: <firstname.lastname@example.org>
Andy Wingo scripsit:
> What's the rationale for breaking call-with-values and values out to
> their own module?
Primarily because they aren't in IEEE/R4RS.
> Suggestion: since it is trivial to implement `call-with-values' with
> a define-record-type <values>, simply require it in the base Scheme.
> If someone is so resource constrained that they cannot include it in
> their system, they can still call their system Scheme, just with a
> small caveat.
There is already a ticket to do this, not for the given reason but
because the Riastradh division operators return two values, unlike any
other standard procedures.
Chibi actually implements multiple purely in Scheme by returning a list
with a unique CAR, which prints as "(value)".
John Cowan <cowan@x> http://www.ccil.org/~cowan
Charles li reis, nostre emperesdre magnes,
Set anz totz pleinz ad ested in Espagnes.
Scheme-reports mailing list