Hacker News new | ask | show | jobs
by okal 3818 days ago
#_ comments out the form it precedes. You do not need to surround it with an extra pair of parentheses.

Didn't know about the difference in behaviour with regard to invalid code. Thanks for that.

EDIT: Leaving this here for context. I'd missed the fact that they weren't all enclosed in a single form to begin with. Parent's solution is correct in light of that.

1 comments

What your parent meant is that your #_ only comments out the first form, not the other two. Surrounding them all with an extra pair of parentheses groups them into a single form.
Oops! I missed that. I wasn't looking closely enough, so it seemed to me like they were all enclosed in a single form to begin with. Thanks.