Skip to content

Latest commit

 

History

History
71 lines (39 loc) · 1.52 KB

CHANGELOG.md

File metadata and controls

71 lines (39 loc) · 1.52 KB

Changelog

v1.0.5

Enhancements
  • Add Result type example in tests.
Bug Fixes
  • Binding non guarded variables to expressions just replaces those vars.

v1.0.4

Enhancements
  • Add union patterns with examples for nats, maybe, either, struct.
  • Report lines at expansion point not as pattern definition line.
Bug Fixes
  • nil values were not able to be bound.
  • vars should be made unique on each expansion.
  • guarded vars were being counted first

v1.0.3

Enhancements
  • Add HOW_IT_WORKS.md to add some details on how guards are expanded.
  • Add bang ! macro for named pattern that can be used as constructor.
Bug Fixes
  • Pattern variables starting with _ were able to be bound.

v1.0.2

Enhancements
  • Allow positional arguments in adition to named bindings.
  • Document generated macros
  • Support expat with

v1.0.1

Enhancements
  • Added a usage guide in README.md
Bug Fixes
  • Ensure pattern expassion happens in all arguments of a def

v1.0.0

Enhancements
  • Major rewrite to let defpat support guards being defined on it
  • Introduced expat to expand patterns inside Elixir expressions
Deprecations
  • Removed the ... syntax that introduced all pattern variables into scope. Now you must be explicit on what variables you want to bind.

  • Removed passing _ to ignore all variables in pattern, now you must use the macro generated with zero arity, or bind all vars to _