Re: Additions to goto discussion

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi ,

  The mail was just for information sake and 
picked from the orignal message 

http://mail.nl.linux.org/kernelnewbies/2003-09/msg00291.html

  I believe it depends on the of code being written 
wherein you need to decide on avoiding/usage of goto
aptly .

Cheers !


 --- Ian Molton <spyro@f2s.com> wrote: > On Fri, 9 Jan
2004 08:22:27 +0000 (GMT)
> Anticipating a Reply <ruxyz@yahoo.com> wrote:
> 
> > That is, it allows you to break out of the block
> > early if some condition is met, without defining
> > a label and using goto.  
> 
> its also more complicated than just using the goto
> and makes your code
> look like it contains a  loop at first glance (which
> it doesnt, of
> course).
> 
> bad style, IMHO.
> 
> whats wrong with:
> 
> if(!foo) {
>  some()
>  thing();
> ...
> }
> 
> -- 
> Spyros lair: http://www.mnementh.co.uk/   ||||  
> Maintainer: arm26 linux
> 
> Do not meddle in the affairs of Dragons, for you are
> tasty and good with
> ketchup. 

________________________________________________________________________
Yahoo! India Mobile: Download the latest polyphonic ringtones.
Go to http://in.mobile.yahoo.com

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux