[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #30070] multiple returns from map
From: |
Andy Wingo |
Subject: |
[bug #30070] multiple returns from map |
Date: |
Fri, 12 Aug 2011 21:03:21 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/534.26+ (KHTML, like Gecko) Version/5.0 Safari/534.26+ Debian/sid/experimental (3.0.4-1) Epiphany/3.0.4 |
Follow-up Comment #2, bug #30070 (project guile):
Stefan, the tail pointer does preserve performance, but it does not preserve
the R6RS invariant about multiple returns.
Szavai is right. Perhaps we should provide some other definition of `map'
within R6RS to satisfy this requirement. However, a proper solution looks
more like recursion than iteration, and to do that with arbitrary-sized lists
will require Guile to implement extendable stacks, which is a significant
hack.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?30070>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [bug #30070] multiple returns from map,
Andy Wingo <=