-
Notifications
You must be signed in to change notification settings - Fork 34
Implement TYPEDSIGNATURENORETURN
#179
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
base: master
Are you sure you want to change the base?
Conversation
|
Thanks @ReubenJ, could I request though that the formatting changes aren't included to make the diff easier to review. |
|
Certainly! I also wanted to add another test or two before review. Thanks for the speedy reply! |
8a740b3 to
8f1797d
Compare
|
Pesky, pesky formatting. Should be good to go now @MichaelHatherly. |
|
Perhaps first #178 should be merged and then CI re-run here? |
|
Also, not sure what your release workflow is—should I include a (patch) version bump in this PR? |
Can be done separately to this one. |
|
Oops, something odd is happening, looks like the tests are not extensive enough yet. Give me a moment here. |
|
With the following docstring """
$(TYPEDSIGNATURESNORETURN)
"""
function get_solver(pi::ProgramIterator)
return pi.solver
endI'm getting search: get_solver
get_solver(pi)
get_solver(pi::ProgramIterator)I wouldn't expect to see the untyped signature there. With help?> get_solver
search: get_solver
get_solver(pi::ProgramIterator) -> Any |
|
Stumped on this for the moment, I'll have to come back to it tomorrow. |
|
No luck reproducing that behavior I saw while testing the changes in another repo, so I think this is ready to go as-is. In the process of trying to reproduce what I saw above, I switched the new tests to use |
Yes, please revert that. If we're going to use ReferenceTests for testing that's fine, and I'd like to see that change, but it would need to be applied to all tests as a single change set rather than adding a few new ones that use it. Best to keep that as a completely separate PR rather than as part of this feature addition. |
|
Sure! No problem. |
a91c808 to
8f1797d
Compare
The abbreviation should behave in the same way as TYPEDSIGNATURE but omit the return type.
8f1797d to
4ac69a2
Compare
|
Reference tests are removed, and the branch is up to date. Any other changes you'd like to see for this to go through? |
| The return type shown by [`TYPEDSIGNATURES`](@ref) is often `-> Any`, which is usually not | ||
| correct. It is nicer to then just omit the type completely. | ||
| """ | ||
| const TYPEDSIGNATURESNORETURN = TypedMethodSignatures(false) |
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.
My only concern is whether this is readable enough with this naming or whether it needs any _ to break the words up. I realise that the other abbreviations don't, and you probably just went with the current naming conventions.
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 agree, it's not the most legible. Is it strictly necessary to use the const form, or is it possible to make the $(TypedMethodSignatures(false) form work? That seems much more flexible in general.
Addresses #159 following the suggestion at #159 (comment).