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: 11390f,4c42ac518eba0bbe X-Google-Attributes: gid11390f,public X-Google-Thread: 1014db,4c42ac518eba0bbe X-Google-Attributes: gid1014db,public X-Google-Thread: 103376,4c42ac518eba0bbe X-Google-Attributes: gid103376,public From: Martin M Dowie Subject: Re: Programming language vote - results Date: 1997/11/25 Message-ID: <$2oaKBAp0xe0EwNL@dowie-cs.demon.co.uk>#1/1 X-Deja-AN: 292595103 Distribution: world X-NNTP-Posting-Host: dowie-cs.demon.co.uk [193.237.34.207] References: <343fbb5a.0@news.iprolink.ch> <34466EB4.3381@dynamite.com.au> <6275dt$agm$3@news.on> <344BCED0.2D51@dynamite.com.au> <62tpap$7gh$1@darla.visi.com> <3470EF6E.F74@lysator.liu.se> <879863453snz@genesis.demon.co.uk> <347B17AC.5A53@mWilden.com> Newsgroups: comp.lang.ada,comp.lang.apl,comp.lang.c Date: 1997-11-25T00:00:00+00:00 List-Id: In article <347B17AC.5A53@mWilden.com>, Mark Wilden writes >Martin M Dowie wrote: >> >> i've heard many people use this "where it is simply the best approach" >> 'reason' - care to given an example? [of goto] > >I've found goto the best way to branch in a simple state machine. in what why is this 'the best'? surely an enumeration type containing each possible state together with a local static variable used in an infinite loop would produce more readable safer and _provable_ code? or is that loop up to the top of a case/guarded select statement too much?.. -- Martin M Dowie