From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,bc243f3bb85ffa4f X-Google-Attributes: gid103376,public From: cosc19z5@Bayou.UH.EDU (Spasmo) Subject: Re: Exceptions: Are they GOTOs? Date: 1996/07/17 Message-ID: <4sjql7$3mu@masala.cc.uh.edu>#1/1 X-Deja-AN: 168649616 references: <4s4tgs$po6@masala.cc.uh.edu> organization: University of Houston newsgroups: comp.lang.ada Date: 1996-07-17T00:00:00+00:00 List-Id: Robert Dewar (dewar@cs.nyu.edu) wrote: : Spasmo said : "Well, exceptions IMO do seem to be a bit unstructured in that control : is immediately transferred to another block and everything is surpassed : so that the possible paths of execution may not be obvious, however : I think this is a very small price to pay for such a beautiful way of : handling errors." : This is an odd definition of structure, but if this is your definition : of structured, then I think your assumption that anything that is not : structured is bad is wrong. I know you go on to say that exceptions are : useful, but you should not accept even for a moment the orhodoxy that : such transfers of control are somehow unstructured and therefore inherently : bad! I assume you have read Knuth's paper :-) Well to me structure is when you can logically look at your code and see where control is heading in a simple top down fashion. Maybe that's not the "proper" definition of structure *shrug*. As for anything unstructured being automatically bad, I wouldn't say that, however if I can do something, then if feasible I'll try to do it using the structured technique. I know that unstructured programming tends to have its applications like in coding FAs straight from the diagram (easier to do with gotos than anything else), it's just that in general I like to avoid it if I can. Am I a structured programming bigot??? :) -- Spasmo "Here's a present just for you When you open it, you'll be through" "Letter Bomb" by the Circle Jerks