any? and every? should exit when the result is clear. As discussed in the thread starting with
http://lists.gnu.org/archive/html/axiom-developer/2004-06/msg00196.html
I believe that the following behaviour of axiom any?(i+->(output(i);(i=1)::Boolean),
Type: Boolean
The attached patch fixes this for HOAGG and CLAGG in Martin Bill wrote: Can we be sure that functions applied during evaluating Martin replied: In fact, I included the comment regarding TREE only to document that if there would be code that depends on the "evaluate all" code, it wouldn't work with TREE anyway, so it would be broken already. Bottom line: no danger. Bill replied: I am not convinced. I think this needs more analysis, i.e. look
at each case were Martin replied: I did some analysis and I'm quite sure that no code will be broken. However, this is a patch I won't push, since it won't produce incorrect results. Have both? --wyscc, Wed, 29 Jun 2005 02:01:46 -0500 reply How about just adding a more efficient any? and every? (don't overload them though) in an auxilliary package? Nothing will be broken and you can have both at your finger tips. I believe this is philosophy behind many of the post-facto packages.
William The better way is to have a general policy for the axiom langage, not to have more and more packages. It must be possible to explain axiom with very few words, and I find it's better to say that axiom is a lazy language, so I believe that every? and any? must change.
Status: fix proposed => closed
|