That sounds really cool.
I did spot a few odd rules in control_structures.clj, though:
(if ?x ?y nil) when
(if ?x nil ?y) when-not
(if (not ?x) ?y ?z) if-not
The when form is usually use in place of (if x (do y z)). It's
perfectly valid to write (if x y), which is semantically equivalent to
(if x y nil).
- James
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clo...@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+u...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
Indeed very cool idea. Thanks.
> --
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this group, send email to clo...@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+u...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
--
Moritz Ulrich
--
This is just ... fantastic! :D
Hi Jonas,Kibit just helped me find some good uses for inc, pos? when and when-not in Midje, thanks :)
Hi Jonas,
> Kibit[1] is a simple code analysis tool (and leiningen plugin) which
> someone hopefully will find interesting or useful. The purpose of the
> tool is to tell its users that "Hey, There's already a function for
> that!".
It's awesome!
It even caught a rather exotic case
[Kibit] Consider clojure.string/join instead of (apply str (interpose \, (for [...] ...)))
Thanks a lot,
Tassilo
It should unify:
(foo ?x . ?y)
If it doesn't we should open up a ticket for that.