[794] in Coldmud discussion meeting

root meeting help first first in chain previous in chain previous next next in chain last in chain last

Re: exception handling...

daemon@ATHENA.MIT.EDU (Thu Aug 31 18:37:24 1995 )

To: 869683 Gillespie Brandon James <brandon@smithfield.declab.usu.edu>
Cc: coldstuff@MIT.EDU
In-Reply-To: Your message of "Thu, 31 Aug 1995 16:24:05 MDT."
             <9508312224.AA04443@smithfield.declab.usu.edu> 
Date: Thu, 31 Aug 1995 18:28:40 EDT
From: Greg Hudson <ghudson@MIT.EDU>


>> This isn't an exception handler, it's a switch statement.

> No, it is both.

FYI, CLU (a languaged developed a long time ago to teach software
engineering at MIT) has a similar exception handling structure:

	statement
		except	when exception1: statements end
			when exception2, exception3: statements end
			others: statements end

It doesn't have an "otherwise," though.  I'm not convinced that
"otherwise" conveys the right meaning; something like "handle success"
seems better.