Quantcast
Channel: Why is one-armed "if" missing from Racket? - Stack Overflow
Viewing all articles
Browse latest Browse all 2

Why is one-armed "if" missing from Racket?

$
0
0

In standard Scheme it is possible to write

(if (> x 2)    (set! x (- x 1)))

but this is not possible in Racket -- Racket's if always requires two arms. Why?


Viewing all articles
Browse latest Browse all 2

Latest Images

Trending Articles





Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>
<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596344.js" async> </script>