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.

Source for ticket #234

cc


    

changetime

2012-10-05 12:16:26

component

WG1 - Core

description

`eager`, like `delay`, returns a promise object that can be forced by `force`, but it evaluates its argument up front (it is a procedure, not syntax) and stashes it in the promise in such a way that `force` can access it.  It comes from SRFI 45 and complements `lazy`, `delay`, and `force`, also from SRFI 45, that we now have.

Semantically, writing `(eager expression)` is equivalent to writing `(let ((value expression)) (delay value))`.  However, the former is more efficient since it does not require unnecessary creation and evaluation of thunks.  And you can't make `eager` efficient yourself unless you have access to the internals of `force`.

id

234

keywords


    

milestone


    

owner

cowan

priority

major

reporter

cowan

resolution

fixed

severity


    

status

closed

summary

Add EAGER from SRFI 45

time

2011-07-15 11:31:10

type

defect

Changes

Change at time 2012-10-05 12:16:26

author

cowan

field

comment

newvalue


    

oldvalue

3

raw-time

1349414186994209

ticket

234

time

2012-10-05 12:16:26

Change at time 2012-10-05 12:16:26

author

cowan

field

resolution

newvalue

fixed

oldvalue


    

raw-time

1349414186994209

ticket

234

time

2012-10-05 12:16:26

Change at time 2012-10-05 12:16:26

author

cowan

field

status

newvalue

closed

oldvalue

writing

raw-time

1349414186994209

ticket

234

time

2012-10-05 12:16:26

Change at time 2011-09-12 03:53:32

author

cowan

field

comment

newvalue


    

oldvalue

2

raw-time

1315774412000000

ticket

234

time

2011-09-12 03:53:32

Change at time 2011-09-12 03:53:32

author

cowan

field

owner

newvalue

cowan

oldvalue

alexshinn

raw-time

1315774412000000

ticket

234

time

2011-09-12 03:53:32

Change at time 2011-09-12 03:53:32

author

cowan

field

status

newvalue

writing

oldvalue

decided

raw-time

1315774412000000

ticket

234

time

2011-09-12 03:53:32

Change at time 2011-09-11 07:47:41

author

cowan

field

comment

newvalue

WG1 accepted this proposal.

oldvalue

1

raw-time

1315702061000000

ticket

234

time

2011-09-11 07:47:41

Change at time 2011-09-11 07:47:41

author

cowan

field

resolution

newvalue


    

oldvalue


    

raw-time

1315702061000000

ticket

234

time

2011-09-11 07:47:41

Change at time 2011-09-11 07:47:41

author

cowan

field

status

newvalue

decided

oldvalue

new

raw-time

1315702061000000

ticket

234

time

2011-09-11 07:47:41