Changeset 7249 in project


Ignore:
Timestamp:
01/02/08 20:10:45 (12 years ago)
Author:
svnwiki
Message:

Changes applied for ben (12.15.146.254) through svnwiki:

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wiki/srfi-34

    r7248 r7249  
    167167Semantics: Whereas raise is analogous to the throw commonly found in other languages, guard is analogous to the try/catch syntax often implemented. VAR gets bound to the exception thrown by BODY, and then the CLAUSEs which have access to VAR, are evaluated until one of the tests succeeds, and the corresponding code gets run. As with cond, the else test always succeeds and so can be used to handle general exceptions.
    168168
    169 Notes: guard also supports <nowiki>=&gt;</nowiki> in the clauses. If the test returns a useful value, then <nowiki>=&gt;</nowiki> can be used to specify a procedure to apply to that value in that case. See the examples section and the srfi for clarification on this.
     169Notes: guard also supports '''<nowiki>=&gt;</nowiki>''' in the clauses. If the test returns a useful value, then '''<nowiki>=&gt;</nowiki>''' can be used to specify a procedure to apply to that value in that case. See the examples section and the srfi for clarification on this.
    170170
    171171----
Note: See TracChangeset for help on using the changeset viewer.