Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
Hexstream
on March 1, 2011
|
parent
|
context
|
favorite
| on:
Clojure: if-let and when-let
I find your lack of parentheses disturbing. I'd personally prefer:
(b-when foo (plusp 1) (frob foo))
These implementations also don't handle declarations correctly ;P A surprisingly tricky topic.
felideon
on March 1, 2011
[–]
Hmm, did you mean...
(bwhen (foo (plusp 1)) (frob foo))
bwhen is actually the first version of the macro, heh. It does seem a bit more idiomatic with parens, but I've gotten used to the other.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: