Towards a better conceptual model of exceptions (Was: Re: The Right Approach to Exceptions)

deadalnix deadalnix at gmail.com
Tue Feb 21 09:01:09 PST 2012


Le 21/02/2012 17:56, H. S. Teoh a écrit :
> The only thing I added, perhaps, is that instead of problem-specific
> conditions, as they appear to have in Lisp, I'm looking at generic
> categories of conditions, that you can handle from high-level code
> without ever needing to know the specifics of exactly what the condition
> is, and yet have the low-level code work it all out once you've made a
> decision.
>

About this, I did some sketching, and I think LISP guys may have 
outsmarted you.

Let's consider a transiant condition. You can retry or give up and 
throw. But, if you want to retry or not often depend on what went wrong, 
no ?


More information about the Digitalmars-d mailing list