-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve destructuring and re-implement in
pcase
.
- Re-implement destructuring of normal values using `pcase`, reducing the maintenance burden and making further improvements easier. - Make it so that the existing destructuring features will signal an error if the `pcase` pattern doesn't match, instead of failing silently as in `pcase`. - Improve `&key`: - Make `&key` signal an error when there are unmatched keys in the property list. - Add `&allow-other-keys`. - Support the full form `((KEY VAR) DEFAULT SUPPLIED)`. - Add `&optional` form `(VAR DEFAULT SUPPLIED)`. - Add `&map` as `(KEY VAR DEFAULT SUPPLIED)`. - Support full forms being vectors as well as lists. - Update README and CHANGELOG. - Move some destructuring features from `loopy-misc.el` to `loopy-destructure.el`. - Move some instruction features from `loopy-misc.el` to `loopy-instr.el` - Add many tests.
- Loading branch information
Showing
20 changed files
with
2,803 additions
and
939 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.