[racket] SRFI-34's guard
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>