home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!snorkelwacker.mit.edu!ai-lab!life.ai.mit.edu!tmb
- From: tmb@arolla.idiap.ch (Thomas M. Breuel)
- Newsgroups: comp.lang.c++
- Subject: Re: GOTO, was: Tiny proposal for na
- Message-ID: <TMB.92Aug28192826@arolla.idiap.ch>
- Date: 28 Aug 92 23:28:26 GMT
- References: <714668024@thor> <6800007@tisdec.tis.tandy.com>
- <1992Aug26.130335.26725@hemlock.cray.com>
- <MATT.92Aug26122422@physics16.berkeley.edu> <rmartin.714929724@thor>
- Sender: news@ai.mit.edu
- Reply-To: tmb@idiap.ch
- Organization: IDIAP (Institut Dalle Molle d'Intelligence Artificielle
- Perceptive)
- Lines: 11
- In-reply-to: rmartin@thor.Rational.COM's message of 27 Aug 92 15:35:24 GMT
-
- In article <rmartin.714929724@thor> rmartin@thor.Rational.COM (Bob Martin) writes:
-
- Goto has never been a "good" way to implement FSMs. Nested
- switch/case statements which use a State variable and transition codes
- are more traditional, easier to maintain, and do not use goto.
-
- That depends on your application. For the inner loop of a GC, an FSM
- implemented with "goto" might be significantly faster than an FSM
- implemented with state variables and transition codes.
-
- Thomas.
-