Style question: returning error values from functions

Monte Goulding monte at sweattechnologies.com
Sun Jul 13 02:21:05 EDT 2003


> > Yes, I was just about to suggest it to Richard. I think this is an under
> > used language feature. Unfortunalty Scott designed the engine throws to
> > require considerable parsing of the error variable to determine
> the problem
> > so you need to handle the possibility of an engine throw. One
> advatage of
> > throws is that they continue through the heirarchy until they
> are handled. I
> > also find that scripts that use try/catch control structures
> are far clearer
> > to read.
>
> Throw wins.
>
> Good discussion.  Thanks.

Is it possible to throw from an external? I haven't done any external
development yet although as soon as I see some decent docs I'll probably
jump in as I know some C.

Regards

Monte




More information about the metacard mailing list