From: Blair Z. <bl...@or...> - 2003-03-10 15:21:29
|
Amit Dubey wrote: > > > I disagree: val_of has two reasonable uses. First, it can be > used with throwaway prototype programs, where simplicity and speed > matter more than correctness. Second, it can be used where the semantics > of the program dictate that the option has "Some" value. If you don't > have a "Some" value in these cases, there often is nothing to do > except bail out in the "with" clause, so you might as well catch > the exception somewhere else higher up. Agreed. I use Some values for my command line options which I verify before I use them, so I'd like to use them easily. Best, Blair -- Blair Zajac <bl...@or...> Plots of your system's performance - http://www.orcaware.com/orca/ |