This site is a static rendering of the Trac instance that was used by R7RS-WG1 for its work on R7RS-small (PDF), which was ratified in 2013. For more information, see Home.

Ticket 396: Promises vs. parameters

2012-07-11 01:36:30
WG1 - Core
alexshinn
major
cowan
duplicate
source
closed
2012-06-07 06:01:45
defect

What are we going to do about code like this:

(define foo (make-parameter 0)) (define bar (delay (foo))) (parameterize ((foo 1)) (force bar))

Does this return 0, 1, or either? All the Schemes in my test suite that support SRFI 39 return 1, so the question is whether we standardize this or permit implementations to return 0. This would be plausible if the delayed expression were executed on a separate thread starting at delay time, in the manner of futures.

resolutionduplicate
statusnewclosed

Duplicate of #397.