-
Notifications
You must be signed in to change notification settings - Fork 281
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use empty? to determine whether a seq is empty #22
Comments
I'm pretty sure "Joy of Clojure" had a section on the topic and the advice was the same. At least in loops it does make sense to me. |
I'm not sure if that comment is agreeing or disagreeing with me, but assuming it is disagreeing, I would ask what |
@AlexBaranosky I hear you. This is a matter of preference, really. I personally use |
I prefer using |
empty?
is simple, direct, and effective. The use ofseq
as a drop-in replacement for(complement empty?)
is not style worth propagating, because it doesn't encourage straight-forward code readability.The text was updated successfully, but these errors were encountered: