| delorie.com/archives/browse.cgi | search |
| From: | phaywood AT aardvark DOT apana DOT org DOT au DOT STOP DOT SPAM (Peter "Shaggy" Haywood) |
| Newsgroups: | comp.os.msdos.djgpp,comp.os.msdos.programmer |
| Subject: | Re: Iteration vs. Recursion... |
| Date: | Sat, 31 Jul 1999 06:32:42 GMT |
| Organization: | Teragen Internet Solutions, Melbourne Australia |
| Lines: | 23 |
| Message-ID: | <37a17fdc.2230829@news.aardvark.apana.org.au> |
| References: | <7n7s1h$ms6$1 AT autumn DOT news DOT rcn DOT net> <37978194 DOT 17661031 AT news DOT cso DOT uiuc DOT edu> <01bed879$332ecc60$9154f6cc AT symbology DOT symbology DOT com> |
| NNTP-Posting-Host: | d104.aardvark.net.au |
| X-Newsreader: | Forte Free Agent 1.11/32.235 |
| To: | djgpp AT delorie DOT com |
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
| Reply-To: | djgpp AT delorie DOT com |
Groovy hepcat Dave Dutcher was jivin' on 27 Jul 1999 21:44:32 GMT in
comp.os.msdos.programmer.
Re: Iteration vs. Recursion...'s a cool scene! Dig it!
>But I couldn't help noticing that a lot of people suggested switch
>statements. I wonder if people suggested a switch statement because the
>orignal poster was looking to increase his speed, or did they suggest it
>because they think switch statements are more readable? I am wondering
>because, from what I have heard, switch statements are no faster than a
>whole bunch of if statements.
That's not always true. A switch can be more efficient than a series
of if statements, but that all depends on the compiler.
But I'd say the suggestion to use switch instead of if was more for
readability than anithing else.
--
----- Dig the EVEN NEWER, MORE IMPROVED news sig!! -----
-------------- Shaggy was here! ---------------
http://aardvark.apana.org.au/~phaywood/
============= Ain't I'm a dawg!! ==============
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |