Remove special syntax for super(X) = A + B in favor of macro(X) = A + JOIN + B#508
Remove special syntax for super(X) = A + B in favor of macro(X) = A + JOIN + B#508gvanrossum wants to merge 1 commit intomainfrom
Conversation
This can now be expressed as a macro using A + JOIN + B.
|
Implementing superinstructions as Parsing superinstructions should be simple. Do we gain much by removing that code? |
I guess we could rename JOIN to SUPER, would that be explicit enough?
You can see for yourself in python/cpython@eadca51. That commit removes about 80 lines net, or about 6% of the generator and parser. About 60 lines are removed from the generator, about 20 from the parser proper. See also #495 which asks a related question. |
|
FWIW after reading Brandt's review of the cpython PR I'm rather hesitant about this. |
|
Off-line we decided not to do this. |
This can now be expressed as a macro using A + JOIN + B.
See also python/cpython#100124 and #507.