Juha Jeronen
Juha Jeronen
Ping? Should this be mentioned in the docs? I could write a PR with a suggestion? If you think there's no need to document this, in that case I think...
The argument is that currently, it's not possible to do certain things - such as, in the use case above, define a λ macro that allows default values for its...
I don't know if it makes the use case any more compelling, but https://github.com/Technologicat/unpythonic/commit/b51337b2f5615afd44c82390fb40c17af6bd17e5 makes `λ` a first-class citizen that can have not only multiple body expressions, but also its...
Here, I made a first cut of this: https://github.com/Technologicat/macropy/commit/653b2d2292215b1ff9aff0a0c75bc7085ad8b6b5 At least all tests still pass, so I probably didn't break much :3 Here's also an updated λ that uses the...
Re-checking [PEP 448](https://www.python.org/dev/peps/pep-0448/), the proposed first-cut solution does need a small revisit after upgrading to Python 3.5, because multiple `*` and `**` items may then appear in the same call....
Ah, well, second cut: https://github.com/Technologicat/macropy/commit/ddd9d7545eeac259dcaf06c08be286b3667addfd https://github.com/Technologicat/unpythonic/commit/80af4b8fe692fd78aeaf70f3759fe7be0d2b7581 Ditched the `OrderedDict` in favor of just passing through the list of `keyword` objects. The advantage, beside better 3.5 support, is that (in PG's...
Thanks for the heads-up, I'll make my code commentable and follow up with a PR for discussion. IMHO, args as an AST is a feature, not a bug; as you...
Since I promised "neat new stuff", here's also an example on λ (all safeties stripped): ```python @macros.expr def λ(tree, args, kwargs, **kw): #
I just obsoleted my λ; this is much more pythonic, not to mention less brittle: ```python @macros.block def multilambda(tree, **kw): @Walker def transform(tree, *, stop, **kw): if type(tree) is not...
Cat: it's a macro thing. :) Roughly speaking, a macro intercepts and transforms code before the rest of the interpreter even sees it. It just needs to be valid syntactically,...