Skip to content

Commit

Permalink
Update README.org and CHANGELOG.md for forgotten breaking change.
Browse files Browse the repository at this point in the history
Now that the built-in destructuring style uses `pcase`, some warnings and
errors have changed.
  • Loading branch information
okamsn committed Aug 18, 2024
1 parent 80a3090 commit f261b1a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 36 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ This document describes the user-facing changes to Loopy.
([#197], [#145]). These commands no longer take multiple conditions in the
same command.

- The built-in destructuring system was switched to use `pcase` internally,
so some warnings and errors are now reportedly differently ([#199]).

### Bugs Fixed

- Allow `back` in `set-prev` to not be known at compile time ([#202]).
Expand Down
39 changes: 3 additions & 36 deletions README.org
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ please let me know.
-----

_Recent breaking changes:_
- Unreleased:
- Version 0.13.0:
- The deprecated =:init= keyword argument has been removed. Use the =with=
special macro argument instead.
- The deprecated =:result-type= keyword argument has been removed. Use the
Expand All @@ -39,41 +39,8 @@ please let me know.
- The commands =always=, =never=, and =thereis= now have the signature
=(command [VAR] CONDITION &key into)=, similar to accumulation commands.
They no longer take multiple condition arguments.
- Version 0.12.0:
- The boolean commands =always=, =never=, and =thereis= now behave more like
accumulation commands and use ~loopy-result~ by default.
- Using multiple conditions in =always=, =never=, and =thereis= is
deprecated. These commands will be changed to have call argument lists
more like accumulation commands, such as =(always [VAR] VAL &key into)=.
This will simplify the code and remove an inconsistency between them and
the other commands.
- Re-using iteration variables in multiple iteration commands now signals
an error. It never produced correct code.
- By default, the commands =cons=, =iter=, =nums=, and =seq-index=
/can/ update named iteration variables outside of the main loop body
and initialize variables to non-nil values, producing faster code.
This can be overridden via the special macro argument =with=.
- =:result-type= is deprecated. Instead, use coercion functions in
special macro arguments, possibly with =accum-opt=.
- The =:init= keyword argument is deprecated. Use the special macro argument
=with= instead.
- =reduce= has been fixed. It now works like ~cl-reduce~ when the variable
starting value isn't explicitly given, storing the first value instead of
storing the result of passing the first value and ~nil~ to the function.
- The deprecated flags =lax-naming= and =split= were removed.
- The deprecated command =sub-loop= was removed.
- The non-keyword arguments of =numbers= are deprecated. Use the keyword
arguments instead. A =:test= keyword argument was added, which is more
flexible and explicit than the non-keyword arguments.
- Fixed a problem with macro expansion in some cases for sub-macros
that created a new macro environment (e.g., ~cl-flet~).
- Loop commands now evaluate arguments like =:test=, =:key=, and =:by= only
once.
- Change the argument order of =test= to be (1) the sequence element then (2)
the tested value, like in ~seq-contains-p~ and _unlike_ in ~cl-member~, and
explicitly state this order in the documentation.
- =&key= now signals an error when there are unmatched keys in the plist, as
in =cl-lib=. =&allow-other-keys= has been added.
- The built-in destructuring system was switched to use ~pcase~ internally,
so some warnings and errors are now reportedly differently.
- See the [[https://github.com/okamsn/loopy/blob/master/CHANGELOG.md][change log]] for less recent changes.

# This auto-generated by toc-org.
Expand Down

0 comments on commit f261b1a

Please sign in to comment.