mirror of
https://github.com/justinethier/cyclone.git
synced 2025-05-18 21:29:18 +02:00
Updated force
to recursively force promises.
This commit is contained in:
parent
90a483da2b
commit
d18b776fa2
2 changed files with 2 additions and 1 deletions
|
@ -13,6 +13,7 @@ Bug Fixes
|
|||
- Improved `(scheme lazy)` to allow `force` and `make-promise` to accept an argument of any type. Improved representation of promises to more precisely differentiate them from other objects.
|
||||
- Add type checking to record type accessor functions. We now raise an error if the passed object is of the wrong record type.
|
||||
- Fix issues with expanding `cond-expand` expressions in libraries. Previously there would be issues with the expansion if the code needed to be within the context of a `begin`.
|
||||
- Updated `(scheme lazy)` such that `force` will recursively force promises.
|
||||
|
||||
## 0.20 - August 14, 2020
|
||||
|
||||
|
|
|
@ -28,7 +28,7 @@
|
|||
(define force
|
||||
(lambda (obj)
|
||||
(if (promise? obj)
|
||||
((cdr obj))
|
||||
(force ((cdr obj)))
|
||||
obj)))
|
||||
|
||||
(define-syntax delay
|
||||
|
|
Loading…
Add table
Reference in a new issue