Juha Jeronen

Results 73 issues of Juha Jeronen

My kwargs hack related to issue #13, mainly for discussion for now. In this version: - New magic is added to `**kw`, called `kwargs`. - `kwargs` gets the AST, as...

On some occasions it would be useful to abbreviate macro names. Particularly `ast_literal` is a rather long name, and if a short quasiquoted expression includes several of them, this can...

On some occasions, being able to pass named arguments to macros would be useful. Use case, related to the multilambda macro in [unpythonic](https://github.com/Technologicat/unpythonic) (rackety lambda with implicit begin, for Python):...

To improve both maintainability and ease of use of macro libraries, it would be useful if a macro-definition module could re-export macros defined in another macro-definition module. This would allow...

On some occasions, a macro needs to invoke another: ```python @macros.expr def aif(tree, gen_sym, **kw): # no hq[], the whole point of "aif" is to leak "it". bindings = [q[(it,...

These expand differently: ```python from macropy.core import macros, show_expanded from unpythonic.syntax import macros, curry with curry, show_expanded: def add3(a, b, c): return a + b + c assert add3(1)(2)(3) ==...

The documentation and docstrings of `Walker` need updating: - `ctx` is passed by name, not positionally. - `ctx` is just an arbitrary user-defined name; it has no special meaning. This...

Things that came up in a discussion with @azazel75 that could be added to the docs: 1. A block macro gets as its argument, and is expected to return, a...

Block macros name their argument `tree`, although technically what gets passed in is a forest (as a list of trees). It would be more descriptive, if the argument name somehow...