-
Notifications
You must be signed in to change notification settings - Fork 1.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
move_only_function
: more concise Python script
#2429
Conversation
TIL what is string interpolation
move_only_function
: more concise Python script
This comment has been minimized.
This comment has been minimized.
tools/move_only_function_specializations/move_only_function_specializations.py
Outdated
Show resolved
Hide resolved
Verified that the script's output still matches the product code, again. |
|
||
|
||
print(cvref_permutations("", "false", "is_invocable_r_v") + "\n" \ | ||
+ "#ifdef __cpp_noexcept_function_type" + "\n" \ |
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.
"..." + "..."
is a bit silly when we can simply concatenate the two strings. Not worth resetting testing, however.
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 preferred this way for consistency with other occurrences where "\n" is a separate string
I'm mirroring this to the MSVC-internal repo - please notify me if any further changes are pushed. |
Thanks for improving code clarity of this script! 🐍 👓 😸 |
TIL what is string interpolation