Jos Visser <[EMAIL PROTECTED]> writes:

> There are a number of ops that could fail. Examples are find_lex but
> also the various load and lookup ops. Options for handling failure are:
>
> - Abort parrot
> - Throw an exception
> - Return a default (null) value
>
> I think it is hard for the parrot designers to decide what language
> implementors want (given the vast array of languages out there for which
> parrot is a godsend). I am currently extending my OpenComal interpreter 
> with a parrot code generator and since Comal is a somewhat awkward 
> language I need different things than the average perl/python/hq9 
> implementor.
>
> I would therefore vote for a feature where I (as language designer)
> could indicate whether for instance a find_lex (but others too) fails
> silently (null return value) or with an exception.
>
> Maybe this should be a global something...

Not global. Or, if it is global, it needs to be dynamically scoped
since you could possibly have different modules implemented in
different languages. 

-- 
Piers

Reply via email to