Changeset 39673 in project


Ignore:
Timestamp:
03/11/21 21:51:47 (2 months ago)
Author:
Kon Lovett
Message:

KL did not write the srfi (André van Tonder), remove C4 history, lazy-strict isa parameter, use -> for type, use * for any, use => import

File:
1 edited

Legend:

Unmodified
Added
Removed
  • release/5/srfi-45/trunk/README.svnwiki

    r39660 r39673  
    1818=== lazy
    1919
    20 <macro>(lazy EXPRESSION) => promise</macro>
     20<syntax>(lazy EXPRESSION) -> promise</syntax>
    2121
    2222Returns a promise for {{EXPRESSION}}, which must evaluate to a SRFI 45 promise.
     
    2828=== lazy-strict
    2929
    30 <procedure>(lazy-strict [STRICT?]) => boolean</procedure>
     30<parameter>(lazy-strict [STRICT?]) -> boolean</parameter>
    3131
    3232The body {{EXPRESSION}} of a {{lazy}} promise must produce a result of type
     
    4040=== eager
    4141
    42 <macro>(eager EXPRESSION) => promise</macro>
     42<syntax>(eager EXPRESSION) -> promise</syntax>
    4343
    4444Returns a promise but immediately evaluates {{EXPRESSION}}.
     
    4646=== force
    4747
    48 <procedure>(force PROMISE) => OBJECT</procedure>
     48<procedure>(force PROMISE) -> *</procedure>
    4949
    5050Returns the result of the evaluation of {{PROMISE}}. When {{PROMISE}} is an R5RS
     
    5454=== delay
    5555
    56 <macro>(delay EXPRESSION) => promise</macro>
     56<syntax>(delay EXPRESSION) -> promise</syntax>
    5757
    5858Returns a SRFI-45 promise, a delayed evaluation of {{EXPRESSION}}.
     
    6060=== lazy-promise?
    6161
    62 <procedure>(lazy-promise? OBJECT) => boolean</procedure>
     62<procedure>(lazy-promise? OBJECT) -> boolean</procedure>
    6363
    6464=== eager-promise?
    6565
    66 <procedure>(eager-promise? OBJECT) => boolean</procedure>
     66<procedure>(eager-promise? OBJECT) -> boolean</procedure>
    6767
    6868=== recursive-promise?
    6969
    70 <procedure>(recursive-promise? OBJECT) => boolean</procedure>
     70<procedure>(recursive-promise? OBJECT) -> boolean</procedure>
    7171
    7272Is the {{OBJECT}} a recursive-promise; an eager or lazy promise?
     
    7474=== promise?
    7575
    76 <procedure>(promise? OBJECT) => boolean</procedure>
     76<procedure>(promise? OBJECT) -> boolean</procedure>
    7777
    7878Some kind of promise? An R5RS promise or a recursive-promise.
     
    8989    (rename chicken (promise? r5rs:promise?))
    9090    ...)
    91   (use srfi-45)
     91  (import srfi-45)
    9292  ... code that can use R5RS and SRFI 45 promises ...
    9393)
     
    116116== Author
    117117
    118 [[/users/kon-lovett|Kon Lovett]]
     118André van Tonder
     119Ported to Chicken 4 by [[/users/kon-lovett|Kon Lovett]]
    119120Ported to Chicken 5 by Sergey Goldgaber
    120121
    121122== Version history
    122123
    123 ; 4.0.1 : .
     124; 4.0.1 : Fixed compiled test.
    124125; [[https://github.com/diamond-lizard/srfi-45/releases/tag/4.0.0|4.0.0]] - Ported to Chicken 5
    125126
Note: See TracChangeset for help on using the changeset viewer.