You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Some clauses in iter don't accept arbitrary clauses such as before-do.
For example, I would expect to be able to use collect within initially-do. But iter does not check in before-do (and I'm assuming it also does not do so for similar clauses like after-do either). I think it should.
Accumulation variables need to be complete before after-do runs, so it wouldn't work to allow collect in them. For example, updates to accumulation variables, such as coercing their type or correcting the order of a list made in reverse, need to happen before code in after-do could try to access them.
It would only work in before-do, and I think it less expected to allow it in before-do without also allowing it in after-do. Neither cl-loop or iterate allow this, as far as I can tell.
Besides, accumulating into a variable in before-do can also just be done by setting the variable in with, though this might involve knowing more about how the macro works.
So, while this would be nice to have, it currently would only work for before-do, where it isn't particularly needed anyway. I think this issue should stay open, but I'm not expecting things to change without majorly complicating how code is generated.
Some clauses in iter don't accept arbitrary clauses such as
before-do
.For example, I would expect to be able to use
collect
withininitially-do
. But iter does not check inbefore-do
(and I'm assuming it also does not do so for similar clauses likeafter-do
either). I think it should.The text was updated successfully, but these errors were encountered: