Implementation of "until"
John Lato
jwlato at gmail.com
Sun Nov 9 20:20:24 UTC 2014
Replacing an infinite loop with an exception sounds like a benefit to me.
While until is technically as strict as the predicate, if the predicate
doesn't evaluate at least to WHNF it's "const True|False", so I think
David's analysis is correct.
WRT strictness analysis, I think the modified annotation means that the
final argument will be evaluated at most once. I know that further analysis
can benefit from knowledge of one-shot semantics, but without an actual
example it's hard for me to say how important that is in this case.
John L.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/libraries/attachments/20141109/54b641c2/attachment.html>
More information about the Libraries
mailing list