Re: apply function incongruity
Neil Van Dyke <[email protected]>
| Newsgroups | gmane.comp.lang.racket.user,gmane.lisp.scheme.plt |
|---|---|
| Message-ID | <[email protected]> |
`and` and `or` are special syntax, so that they can do "short-circuit boolean evaluation", in order. This only burps once: #lang racket (define (f) (display "burp!\n") #false) (and (f) (f) (f)) This is useful when you have side-effects, and and for avoiding unnecessary computation. You'll sometimes see `and` and `or` used more like a control structure from some other language, like `if`. -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to racket-users+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/[email protected] For more options, visit https://groups.google.com/d/optout.