<div dir="ltr">Hello.<div><br></div><div>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.</div><div><br></div><div><div>> (require srfi/34)</div>
<div>> (guard (condition</div><div> (else</div><div> (display "condition: ")</div><div> (write condition)</div><div> (newline)</div><div> 'exception))</div><div>
(+ 1 (raise 'an-error)))</div><div>. else: not allowed as an expression in: else</div><div>> (guard (condition</div><div> (else</div><div> (display "something went wrong")</div><div> (newline)</div>
<div> 'dont-care))</div><div> (+ 1 (raise 'an-error)))</div><div>. else: not allowed as an expression in: else</div><div>> </div></div><div><br></div><div>Is there any reason I couldn't use 'else'?</div>
<div><br></div><div>Thanx.</div></div>