From f261b1ab004c8124d1a4dc756cda8da49386ef5b Mon Sep 17 00:00:00 2001 From: okamsn Date: Sat, 17 Aug 2024 22:49:00 -0400 Subject: [PATCH] Update README.org and CHANGELOG.md for forgotten breaking change. Now that the built-in destructuring style uses `pcase`, some warnings and errors have changed. --- CHANGELOG.md | 3 +++ README.org | 39 +++------------------------------------ 2 files changed, 6 insertions(+), 36 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 00b32a76..65e4b3bf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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]). diff --git a/README.org b/README.org index 4d5c3da9..16226913 100644 --- a/README.org +++ b/README.org @@ -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 @@ -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.