All Versions
6
Latest Version
Avg Release Cycle
5 days
Latest Release
2457 days ago
Changelog History
Changelog History
-
v1.0.5 Changes
March 22, 2018โจ Enhancements
- Add
Result
type example in tests.
๐ Bug Fixes
- Binding non guarded variables to expressions just replaces those vars.
- Add
-
v1.0.4 Changes
March 22, 2018โจ 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
- Add union patterns with examples for
-
v1.0.3 Changes
March 12, 2018โจ 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 Changes
โจ Enhancements
- Allow positional arguments in adition to named bindings.
- Document generated macros
- Support
expat with
-
v1.0.1 Changes
โจ Enhancements
- Added a usage guide in README.md
๐ Bug Fixes
- Ensure pattern expassion happens in all arguments of a
def
-
v1.0.0 Changes
โจ 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_
- Major rewrite to let