Hi Mark,

On 19 Dez., 13:12, "Mark Volkmann" <r.mark.volkm...@gmail.com> wrote:

> What is ":>"? Is that just a keyword whose name is ">"?

It's exactly that: a keyword with the name ">".

> I think adding more characters with special meaning
> makes code harder to read, so I hope we don't add
> more of these.

It comes from (some) Scheme. There you can "pipe"
the result of a test expression into the result expression
using "=>".

(cond
  (test-expr => result-expr))

result-expr should actually be a function, which is
called with the result of the test-expr.

If you don't need this, you don't have to use it.

(condp instance? x
  String "some string"))

is (more or less) equivalent to

(cond
  (instance? String x) "some string"))

Sincerely
Meikel


--~--~---------~--~----~------------~-------~--~----~
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
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