-
-
Notifications
You must be signed in to change notification settings - Fork 175
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
Allow {symbol} interpolation outside of strings #634
Conversation
8541fe9
to
b03f3b3
Compare
Unfortunately, this implementation suffers from a bug that macro arguments used to have (#63).
The proper fix for that issue was to expand arguments before everything else (hence |
1c97438
to
4c88907
Compare
Now This fixes the above issue; interpolation will work inside of numeric literals. |
4c88907
to
cc37a0c
Compare
Why do strings need interpolation disabled? |
Inside |
Alright, I'm not a fan of this special case, but it's necessary for compatibility, and the implementation is acceptable. Checkpatch notes two style mismatches. Finally, as this is a touchy part of the codebase, I'll page @AntonioND for a second pair of eyes; if he's satisfied with the change as well, he can merge this. |
cc37a0c
to
ef277a3
Compare
This, plus more printf-like format specifiers, will really simplify pokered's code.
The "output and purge" comment there is basically self-explanatory. |
Ooops, I didn't see the review request. I've received so many notifications from this repo in the last few days that I've just started to get rid of most of them... My problem with this PR is that it is just not clear what it does. There is no documentation and the only test is so long and complicated that is not useful as an example. |
The lack of documentation is certainly a problem. I would define the content of this PR as "expanding the contents of symbols, like in strings, but in code". @AntonioND If you're receiving too many notifications, you may want to tune your "Watch" settings? |
Yeah, true.
Well, most of the time this isn't a problem because there isn't that much activity, and I like the instant notifications in that case. In situations like the current one, when there are so many changes, just ping me on Discord to make sure I see it. |
ef277a3
to
92558c0
Compare
I've simplified the test case file and added it to the
Please let me know if the example should be edited further. |
92558c0
to
fd0cf56
Compare
fd0cf56
to
0d10549
Compare
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.
Yeah, that's better.
Alright, I'm OK with the new changes as well, so we'll (finally!) merge this. |
Fixes #629
Closes #631