Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] assertions or exceptions?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Brian Hurt <bhurt@s...>
Subject: RE: [Caml-list] Unboxing options, was RE: assertions or exceptions?
On Thu, 15 Jul 2004, John Hughes wrote:

> I'd like to suggest that this isn't really a problem. 
> The key is the idea of "exception", which is that it's
> an *exception* to what ordinarily happens. The same goes
> for errors -- they should be exceptional. As such, making the
> code associated with these things more efficient (as opposed
> to more readable, maintainable, whatever else) should be WAAAY
> down on your priority list. 

There are a lot of places where the question isn't exceptions vr.s
options, where options are the only choice (optional arguments, for one).  
And some times exceptions are less exceptional than they might otherwise
be- when you're reading all the lines from a file, hitting the end of file
sooner or later is expected.

-- 
"Usenet is like a herd of performing elephants with diarrhea -- massive,
difficult to redirect, awe-inspiring, entertaining, and a source of
mind-boggling amounts of excrement when you least expect it."
                                - Gene Spafford 
Brian

-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners