3 ms·
I think you're confusing macroexpansion, where a marker in the source is expanded into a different piece of code in the 'tangle' and 'weave', with transclusion,
by samatman 6y ago
I think you're confusing macroexpansion, where a marker in the source is expanded into a different piece of code in the 'tangle' and 'weave', with transclusion, where the source contains a full copy of the code in both places, and the compiler takes care of keeping them in sync.
What I want is the ability to link a particular piece of code into an issue discussing it, such that this particular copy stays in sync. Since I can already copy-paste such that they don't stay in sync, we now have both options, perhaps even simultaneously.
Edit to add: automatic sync should be one-way, with the compiler warning if there are changes in the copy but not the source. Being able to edit the source code inside an issue is a case where more power isn't better than less.