Message403956
> These macros can be abused to be used as l-value
You could simply document, "don't do that". Also if these is a need to make an assignment, you're now going to have to create a new setter function to fill the need.
We really don't have to go on thin ice converting to functions that might or might not be inlined depending on compiler specific nuances.
AFAICT, no one has ever has problems with these being macros. There really isn't a problem to be solved and the "solution" may in fact introduce new problems that we didn't have before.
Put me down for a -1 on the these blanket macro-to-inline function rewrites. The premise is almost entirely a matter of option, "macros are bad, functions are good" and a naive assumption, "inline functions" always inline. |
|
Date |
User |
Action |
Args |
2021-10-14 22:06:30 | rhettinger | set | recipients:
+ rhettinger, lemburg, vstinner |
2021-10-14 22:06:30 | rhettinger | set | messageid: <1634249190.01.0.17411237094.issue45476@roundup.psfhosted.org> |
2021-10-14 22:06:29 | rhettinger | link | issue45476 messages |
2021-10-14 22:06:29 | rhettinger | create | |
|