[m-dev.] Re: exceptions
Ralph Becket
rbeck at microsoft.com
Mon Oct 11 19:14:34 AEST 1999
> -----Original Message-----
> From: Fergus Henderson [mailto:fjh at cs.mu.OZ.AU]
>
> Does Modula 2+ have parametric polymorphism or higher-order
> procedures?
> The additional complexity of declaring exceptions is
> a bit higher in the presence of these features.
Good point. Still, if we have an exception typeclass hierarchy with a
root then we can just declare that polymorphic predicates may raise
error/1 or whatever name is decided upon.
> I'm not totally opposed to the idea of declaring exceptions.
> Certainly for safety-critical software, it's probably worthwhile.
> But in many cases I think the disadvantages will outweigh the
> advantages.
>
> I'd be happy for Mercury to have compiler-checked
> declarations of which
> exceptions a predicate would throw, so long as they were (by default)
> optional. But it's not at all high on my personal list of priorities.
You're probably right, given the problems thrown up by higher order code.
Shame.
Ralph
--------------------------------------------------------------------------
mercury-developers mailing list
Post messages to: mercury-developers at cs.mu.oz.au
Administrative Queries: owner-mercury-developers at cs.mu.oz.au
Subscriptions: mercury-developers-request at cs.mu.oz.au
--------------------------------------------------------------------------
More information about the developers
mailing list