-
Notifications
You must be signed in to change notification settings - Fork 94
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
Minor redundant code or possible bug in instruction (not (not %))? #267
Comments
I haven't investigated whether The |
Gotcha. I am not sure either about => (boolean (and :a :b))
true
=> (boolean (and :a '()))
false Not crucial to make any changes because behavior is correct. |
I'm reopening this, since it seems at the least this could use a comment to explain the strange code for future generations, and it wouldn't be a bad idea to just change to |
I can't be exactly sure what this instruction is meant to do based on its name alone, but something seems off. Seems wrong to have
(not (not ...))
anywhere.Link to full code:
https://github.com/lspector/Clojush/blob/master/src/clojush/instructions/code.clj#L386
The text was updated successfully, but these errors were encountered: