On Tue, Mar 01, 2016 at 08:52:56PM +0000, David Gamey wrote:
> I went back and tweaked the descriptions of suspend and &fail in 
> http://rosettacode.org/wiki/Icon%2BUnicon/Intro which was mostly correct on 
> this.  I found a couple of good examples of using &fail (which I almost never 
> use).
> There are probably a lot of new features that are not represented here.
> 
>  ...
>    
> I wrote the test suite after thinking about documenting the return behaviour. 
>  I realised that just saying it returned to the caller could also be 
> misinterpreted. It returns the value or the failure to the caller.  Sort of 
> deferring the failure or failing within the callers context ‎. 


Ralph used the them "outcome" to describe expression evaluation.
An expression evaluates to an outcome.  An outcome is either a
result (in which case the evaluation is said to succeed) or no
result (expression evaluation failure).  Goal-directed evaluation
produces a result as the outcome if it is possible to do so.

So, going back to the behavior of "return expression", one can
say that the return delivers the outcome of evaluating the
expression as the outcome of invoking the procedure or method.

[That's probably a better wording than my last attempt!]

-- 
Steve Wampler -- swamp...@noao.edu
The gods that smiled on your birth are now laughing out loud.

------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
_______________________________________________
Unicon-group mailing list
Unicon-group@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/unicon-group

Reply via email to