lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On Tue, Sep 19, 2006 at 11:04:11AM -0700, Sam Roberts wrote:
> On Mon, Sep 18, 2006 at 06:08:51PM -0700, Jasmin Patry wrote:
> > Has anybody had any success trying to do something similar?  Or is
> > continuing script execution after errors just a bad idea when working
> > with Lua (or in general, despite our fairly positive experience with
> > it)?

You asked for experiences in general, so I asked a friend of mine (Chris
Cummer) about negative experiences with the "ignore errors" style of
programming, since I recall a few beers going by while he ranted about
it:

	in VBScript programming for web pages you can add "On Error Resume
	Next" which will continue to execute the code whether an error exists
	or not
	
	i hate that line of code more than any other i've ever come
	across, for the record

	the use of that line indicates your code is so bad even error
	handling can't manage it. two years at <deleted> hunting down that
	line of code, removing it, and then fixing everything it masked

	it is my Grendel

YOU would never abuse your scripts like this, of course, you would fix
the errors immediately... but maybe you will have to debug code by
others that are not so responsible?

Cheers,
Sam