-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
choosetests
: return a NamedTuple
(instead of a Tuple
), to make it easier to add more information in the future
#42723
Conversation
I suggest you switch to the |
Done! |
Hmmm, any particular reason why? This seems like a lot of code churn. And the current form ( |
yeah, but it also holds for the current |
Oh, I see what you're getting at. Yeah that was the purpose of this PR. |
What if we instead switch to destructuring the named tuple, i.e. It's more concise. And as far as I can tell, this form does not require us to know about the order of the tuple, right? |
…it easier to add more information in the future
26b743b
to
8b4b6f7
Compare
We'll probably still need to preserve the order in the future, but this will likely make it easier for folks to use, particularly for new additions |
to make it easier to add more information in the future (cherry picked from commit 9e3cfc0)
to make it easier to add more information in the future (cherry picked from commit 9e3cfc0)
to make it easier to add more information in the future (cherry picked from commit 9e3cfc0)
to make it easier to add more information in the future
to make it easier to add more information in the future
Currently, the
choosetests
function returns aTuple
.This pull request modifies the
choosetests
function so that it returns aNamedTuple
instead. With this change, if in the future we decide to add more return values, we can do so without breaking existing uses of thechoosetets
function.