Skip to content

Version 0.8.8

Compare
Choose a tag to compare
@Technologicat Technologicat released this 25 Sep 08:54
· 2900 commits to master since this release

"More spicy" edition:

Changes:

  • curry: by default, TypeError if args remaining when exiting top-level curry context
    • add dynvar curry_toplevel_passthrough to switch the error off
  • rotate now conceptually shifts the arg slots, not the values; this variant seems easier to reason about.
  • accept just tuple (not list) as the pythonic multiple-return-values thing in curry, compose, pipe

New:

  • add make_dynvar, to set a default value for a dynamic variable. Eliminates the need for if 'x' in dyn checks.
  • as an optional extra, add a MacroPy3 based autocurry macro, which automatically curries all function calls that lexically reside in a with curry block. (Make your Python look somewhat like Haskell.)

Bugfixes/optimizations:

  • nth: fix off-by-one bug
  • dyn: skip pushing/popping a scope if no bindings given