From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <3e1162e60606091638s24d2031j5e03987991206eef@mail.gmail.com> Date: Fri, 9 Jun 2006 16:38:22 -0700 From: "David Leimbach" To: "Fans of the OS Plan 9 from Bell Labs" <9fans@cse.psu.edu> Subject: Re: [9fans] quantity vs. quality In-Reply-To: <448A0375.5030207@lanl.gov> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <4ef97ffa3f0bbb8004fb870726536e2c@collyer.net> <50097123-1D9F-400C-BABA-3F9A4B352733@orthanc.ca> <20060608030512.GE13116@augusta.math.psu.edu> <20060609220308.GA2291@submarine> <3e1162e60606091544p5be17e81k201735720c8c1a1@mail.gmail.com> <448A0375.5030207@lanl.gov> Topicbox-Message-UUID: 65ce3c42-ead1-11e9-9d60-3106f5b1d025 On 6/9/06, Ronald G Minnich wrote: > Latchesar Ionkov wrote: > > Another example is using emalloc in libraries. I agree that it is much > > simpler to just give up when there is not enough memory (which is also > > not very likely case), but is that how the code is supposed to be > > written if you are not doing research? > > yes, that is a problem with a lot of code. "Just bail on first error" -- > we've had to stop using emalloc here because that is very unrealistic > for production support. > > ron > Well I wonder what people typically do when they can't malloc anymore memory but need more... A reasonable thing to do is to die I'd think. In fact if you use Perl "die" is even a part of the lang. my $a = 5 or die; print "hello, world\n" or die; ^^ Valid, "draconian" perl?