Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Design unification of macros/CAOFs/struct-inheritance #3561
EDIT: This description needs a refresh: see #7022 for a more recent perspective.
On top of existing symbol-level rewrites that are possible with TargetMacros and context aware object factories (CAOFs), the new engine adds struct inheritance and merging. For many cases, inheritance/merging should remove the need for macros/CAOFs.
But one of the advantages that macro/CAOFs retain is that they make it possible to globally and transparently affect the behaviour in a repo. For example, Twitter uses the ability to globally override the
(It's possible that the move to "untyped Targets with typed Products" will solve this issue, because Twitter would move to encapsulating the additional parameters to