Skip to content

Version 0.9.2

Choose a tag to compare

@Technologicat Technologicat released this 09 Oct 11:04
· 2825 commits to master since this release

"Through the looking glass" edition:

  • new multilambda block macro: supercharge regular Python lambdas, contained lexically inside the block, with support for multiple expressions and local variables. Use brackets to denote a multi-expression body.
  • new fup macro providing more natural syntax for functional updates; allows using slice syntax.
  • upgrade: the let macros can now optionally have a multi-expression body. To enable, wrap the body in an extra set of brackets.
  • remove the 0.9.0 multilambda λ; brittle and was missing features.

The macros implement the multi-expression bodies by inserting a do; this introduces an internal-definition context for local variables. See its documentation in the macro_extras README for usage.

The macro_extras README now includes a table of contents for easy browsability.