Skip to content

On recursion again: does Apalache handle Fold operators over collections well? #1166

Answered by shonfeder
timimin asked this question in Q&A
Discussion options

You must be logged in to vote

Does the fold operator has that bad impact on the Apalache effectiveness?

On the contrary! Our plans to depreciate explicit recursions is motivated in part by our conviction that folds are nice and good, and the best option for enabling iteration over collections.

I think you may have misread @konnov's remark, but I can see how the confusion arose. When Igor wrote,

We have found that, in practice, using the folds defined by the Apalache module, recursive operators are almost always unnecessary, and it's very likely that we will end up restricting their use in the future.

He meant that, recursive operators (i.e., operators defined using explicit recursion) are unnecessary because folds…

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by timimin
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants