Gentoo Logo
Gentoo Spaceship




Note: Due to technical difficulties, the Archives are currently not up to date. GMANE provides an alternative service for most mailing lists.
c.f. bug 424647
List Archive: gentoo-dev
Navigation:
Lists: gentoo-dev: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: gentoo-dev@g.o
From: Ciaran McCreesh <ciaran.mccreesh@...>
Subject: Re: EAPI 3 and "nonfatal die"
Date: Sat, 22 Aug 2009 00:26:21 +0100
On Sat, 22 Aug 2009 01:20:36 +0200
Maciej Mrozowski <reavertm@...> wrote:
> > > That being said I don't like refraining from "return value
> > > approach" towards "exception handling approach"
> > 
> > nonfatal's not an exception handling approach. Think of it as a
> > utility like 'nice', 'ionice', 'xargs', 'env' or 'hilite'.
> 
> Le sigh..
> Replacing return value with die ("throw") *and* providing 'nonfatal'
> as mechanism to catch and ignore what's been thrown is obviously
> "exception handling approach" (not literally that is, I don't have to
> recall the semantics of \" character) - every respected software
> engineer will see that.

That isn't what nonfatal does. It does not in any way catch and ignore
what's been thrown. It prevents the fatal notification from being sent
in the first place.

die is not a throw operation, never has been a throw operation (see the
whole "die in subshells" mess) and isn't going to be a throw operation.

-- 
Ciaran McCreesh
Attachment:
signature.asc (PGP signature)
References:
EAPI 3 and "nonfatal die"
-- David Leverton
Re: EAPI 3 and "nonfatal die"
-- Maciej Mrozowski
Re: EAPI 3 and "nonfatal die"
-- Ciaran McCreesh
Re: EAPI 3 and "nonfatal die"
-- Maciej Mrozowski
Navigation:
Lists: gentoo-dev: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
Re: EAPI 3 and "nonfatal die"
Next by thread:
Re: EAPI 3 and "nonfatal die"
Previous by date:
Re: EAPI 3 and "nonfatal die"
Next by date:
Re: EAPI 3 and "nonfatal die"


Updated Jun 29, 2012

Summary: Archive of the gentoo-dev mailing list.

Donate to support our development efforts.

Copyright 2001-2013 Gentoo Foundation, Inc. Questions, Comments? Contact us.