ajay gopalakrishnan <ajgop...@gmail.com> writes:

> If possible, I would also want to see a macro that allows me to write (x < y)
> instead of  (< x y).

Here's Chouser's infix function, which he apparently has never used
since writing it: 

http://paste.lisp.org/display/75230

> (+ x y) can be read literally as "add x to y"
> (square x) can be read literally as "squares x"
> (< x y) how do you read this literally left-to-right?

Ah yeah, that's one that still trips me up.  Some people kind of read 
(< x y z) as (ascending? x y z) and you could think of the < symbol as a
ramp going up so the z is above the y is above the x.  Even knowing that
I still confuse myself occasionally though.  I don't have any problems
with arithmetic or function calls, I just really expect the larger
quantity to be on the "wide" side of the < wedge.

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to