Well, for a lot of applications for Python, the performance that really
counts is time from no code but a pile of data to code and processed
data. Python shines at that because nearly always the time to write
the code dominates, so it doesn't matter what the run time is.
I wrote a little to
I can post an alternative, inspired by this bit of Haskell (I've
deliberately left out the Haskell type annotation for this):
zoneOpts argv =
case getOpt Permute options argv of
(o,n,[]) -> return (o,n)
(_,_,errs) -> error errs
which could, in a future Python, look something like: