Prefix Notation

Oct 22, 2008 13:10

Brian Hayes discusses whether binary operators and relations need be binary at all. In Scheme, the expression x + y is written (+ x y) and generalizes naturally to (+ x y z a b c). Well, what about (+ x)? That seems harmless enough. But consider (+)? Or (min)?

(= a b) can be extended to the "all equal" relation (= a b c) but what does (!= a b ( Read more... )

theory, mathematics, algebra, programming

Leave a comment

Comments 2

anonymous October 23 2008, 04:44:08 UTC
(+) = 0; (min) = infinity

Reply

markgritter October 23 2008, 15:30:46 UTC
Yes, but Scheme doesn't have an infinity value--- it has big ints.

Reply


Leave a comment

Up