Closed azazel75 closed 6 years ago
@azazel75 I'm not interested, but if you are I can give you admin to this repo so you can continue the work with the existing mindshare MacroPy already has.
Yes, I'm interested! I think that the best thing though would be to for you to create a new organization (MacroPy?), move this repo to it and add me to the organization. What do you think?
Passed you contributor access for now; feel free to go wild with the repo
We can figure out how to set up an org later
Hello,
I'm using macropy and I stumbled on an unexpected problem last week when using a moderately complex patterns macro like this:
strangely, I thougth that this would work but the
switch
macro is expanded before the others and complained about all the (unexpanded)q
macros in its body. So I looked up the docs and found out about the default expansion order and the possible work-around of using expand_macros() inside to top macro and i was thinking if/how best use it. Here are a few thoughts that came up:expand_macros()
on the sub-tree;switch
macro inside another that "jumps over" the outer one and expands its body seemed a little fragile to meSo I've reimplemented the core logic of the expansion process to be inside-out by default, with an option for interested macros (like those in
tracing.py
) to reverse this process. Unfortunately I had to rewrite almost all of it, the previous implementation didn't fit in my brain sorry.To anyone still interested in this project and using it in Python3 (3.3+) can you please have a look at my fork here and tell me what you think? @lihaoyi are you still interested? I hope so
I haven't created a pull request for this because my fork has diverged a little too much, while being still a target for a fast-forward.
P.S. I still have to update the docs