[Nix-dev] Re: Proposal: tryCatch function

Marc Weber marco-oweber at gmx.de
Tue Jan 6 01:27:22 CET 2009


> Another concern is that it catches all exceptions.  Compare this with
> what other languages typically provide, where only exceptions of the
> specified type are caught (it's also usually possible to catch
> exceptions of any type, e.g., by specifying `Exception' as the exception
> type in Java, but that has to be made explicit.)

We don't have types.. Are you thinking about
catchString catchAttrs catchNull catchList  ?

I guess we can do this all using rethrow or so.

Marc



More information about the nix-dev mailing list