[racket] SRFI-34's guard

From: 亀田馬志 (masashi.kameda at gmail.com)
Date: Tue Jan 28 10:20:14 EST 2014

Hello.

I'd like to use SRFI-34 on Racket, but it says else is not allowed
eventhough I copied and paseted sample codes stated in SRFI-34.

> (require srfi/34)
> (guard (condition
         (else
          (display "condition: ")
          (write condition)
          (newline)
          'exception))
  (+ 1 (raise 'an-error)))
. else: not allowed as an expression in: else
> (guard (condition
         (else
          (display "something went wrong")
          (newline)
          'dont-care))
 (+ 1 (raise 'an-error)))
. else: not allowed as an expression in: else
>

Is there any reason I couldn't use 'else'?

Thanx.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20140129/8d717639/attachment.html>

Posted on the users mailing list.