Gentoo Archives: gentoo-dev

From: "Marijn Schouten (hkBst)" <hkBst@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] Re: EAPI 3 and "nonfatal die"
Date: Fri, 28 Aug 2009 19:57:57
Message-Id: 4A93BB3A.4040005@gentoo.org
In Reply to: [gentoo-dev] Re: EAPI 3 and "nonfatal die" by Christian Faulhammer
1 -----BEGIN PGP SIGNED MESSAGE-----
2 Hash: SHA1
3
4 Christian Faulhammer wrote:
5 > Hi,
6 >
7 > Ryan Hill <dirtyepic@g.o>:
8 >
9 >> On Fri, 21 Aug 2009 21:56:41 +0100
10 >> David Leverton <levertond@××××××××××.com> wrote:
11 >>
12 >>> Does anyone have any opinions on which of the four options (#1
13 >>> make die respect nonfatal, #2 make die always die, #3 add a new
14 >>> die variant that respects nonfatal, #4 make regular die respect
15 >>> nonfatal, and add a new variant that doesn't) we should go with?
16 >>> We should definitely get this resolved and agreed on before EAPI
17 >>> 3 is finalised.
18 >> I'd like die to respect nonfatal. People using nonfatal should check
19 >> beforehand that the functions they're calling won't do anything
20 >> stupid if die's are ignored. If there's something that absolutely
21 >> has to die, nonfatal or not, then use a variable. I guess that's #4?
22 >
23 > I agree here (yes, I know, a "ME TOO" posting, but I say this as PMS
24 > team member).
25
26 I thought the whole idea was that functions that don't currently die by default
27 because sometimes this is unwanted will now die by default but provide an opt
28 out --non-fatal switch to get back the old behavior. In the non-fatal case such
29 functions should then again (as in the current situation) not call die.
30
31 Some functions will not have a --non-fatal switch.
32 Some functions should not have a --non-fatal switch.
33 Some functions will call die unconditionally.
34
35 What is the reason that we are trying to generalize non-fatal from a simple
36 switch to a full-blown primitive that should handle whatever it's thrown?
37
38 Marijn
39
40 - --
41 If you cannot read my mind, then listen to what I say.
42
43 Marijn Schouten (hkBst), Gentoo Lisp project, Gentoo ML
44 <http://www.gentoo.org/proj/en/lisp/>, #gentoo-{lisp,ml} on FreeNode
45 -----BEGIN PGP SIGNATURE-----
46 Version: GnuPG v2.0.11 (GNU/Linux)
47 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
48
49 iEYEARECAAYFAkqTuzoACgkQp/VmCx0OL2xh1ACgjvtPz+3uke5p2p+iVuSmGw1u
50 JKwAn2O2l1h8gRDkGnfZ2aIwaIHvlr/L
51 =ybPQ
52 -----END PGP SIGNATURE-----

Replies

Subject Author
Re: [gentoo-dev] Re: EAPI 3 and "nonfatal die" Ciaran McCreesh <ciaran.mccreesh@××××××××××.com>
Re: [gentoo-dev] Re: EAPI 3 and "nonfatal die" Ciaran McCreesh <ciaran.mccreesh@××××××××××.com>