-
-
Notifications
You must be signed in to change notification settings - Fork 13
keyword function return default in error cases #995
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
Conversation
Looks like the failure was with storing the test result rather than the test itself. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I had no idea Clojure just let any value pass here. Yuck. But thanks for catching this. Two very minor comments on the changelog.
CHANGELOG.md
Outdated
@@ -17,9 +17,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 | |||
* Improved on the nREPL server exception messages by matching that of the REPL user friendly format (#968) | |||
* Types created via `deftype` and `reify` may declare supertypes as abstract (taking precedence over true `abc.ABC` types) and specify their member list using `^:abstract-members` metadata (#942) | |||
* Load functions (`load`, `load-file`, `load-reader`, etc) now return the value of the last form evaluated. (#984) | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you undo this removal?
CHANGELOG.md
Outdated
### Fixed | ||
* Fixed inconsistent behavior with `basilisp.core/with` when the `body` contains more than one form (#981) | ||
* Fixed using keyword as a function not returning the default value in some cases (#995) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you file a ticket w/ the issue and use that as the reference here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sure
These seem to be transient. I reran it and it was fine. |
In scheme, |
0d3613a
to
a95e6b8
Compare
Comments have been addressed, I'm not what's happening with the readthedocs build and it doesn't look like I have the power to retry it |
I am not referring to
|
Looks like another transient failure. I reran and it was fine. |
Fixes #997
Quick fix. I noticed that using a keyword as a function with
nil
as the collection always returnsnil
rather than the default.This demonstrates the bug: