On Thu, 11 Jun 1998, Fergus Henderson wrote: > > It would make debugging easier if the exception picked was consistent > > accross implementations. It doesn't matter which one, but it does matter > > that it is the same. (maybe you require that Exceptions implement Ord, > > or sort based on the Hashvalue of the constructor) > > I think this would be difficult to implement efficiently. Why is this difficult to implement efficiently? If exceptions are strings (as they appear to be in Simon's initial proposal), then you can sort alphabetically. If they have type, then they would be required to implement Has_HashValue and the implementation could rely on existential types to sort. I am sure there are better ways, but It is not obvious why the objection to cannonical ordering should be implementation efficiency... -Alex- ___________________________________________________________________ S. Alexander Jacobson i2x Media 1-212-697-0184 voice 1-212-697-1427 fax
- Re: FW: Exceptions are too return values! Ralf Hinze
- Re: FW: Exceptions are too return values! Tommy Thorn
- Re: FW: Exceptions are too return values! S. Alexander Jacobson
- Re: FW: Exceptions are too return values! Koen Claessen
- RE: Exceptions are too return values! Karlsson Kent - keka
- Re: FW: Exceptions are too return values! Kevin Hammond
- Re: FW: Exceptions are too return values! Fergus Henderson
- Re: Exceptions are too return values! Fergus Henderson
- Re: FW: Exceptions are too return values! Fergus Henderson
- Re: FW: Exceptions are too return values! Alastair Reid
- Re: FW: Exceptions are too return values! S. Alexander Jacobson
- Re: FW: Exceptions are too return values! Fergus Henderson
- Re: FW: Exceptions are too return values! Simon L Peyton Jones
- Re: FW: Exceptions are too return values! Simon L Peyton Jones
- Re: FW: Exceptions are too return values! Simon L Peyton Jones
- RE: Exceptions are too return values! Karlsson Kent - keka
- Re: FW: Exceptions are too return values! Amr A Sabry
- Re: Exceptions are too return values! Fergus Henderson
- Re: FW: Exceptions are too return values! Fergus Henderson
- Re: Exceptions are too return values! Hans Aberg
- Re: FW: Exceptions are too return values! Alastair Reid