Today's Posts Follow Us On Twitter! TFL Members on Twitter  
Forum search: Advanced Search  
Navigation
Marketplace
  Members Login:
Lost password?
  Forum Statistics:
Forum Members: 24,254
Total Threads: 80,792
Total Posts: 566,472
There are 1960 users currently browsing (tf).
 
  Our Partners:
 
  TalkFreelance     Design and Development     Programming     PHP and MySQL :

do NOT use {} for single if-else statements..

Thread title: do NOT use {} for single if-else statements..
Closed Thread    
    Thread tools Search this thread Display Modes  
02-18-2007, 11:40 PM
#1
Dizzee is offline Dizzee
Status: Member
Join date: Sep 2005
Location: Tucson, Arizona
Expertise:
Software:
 
Posts: 241
iTrader: 0 / 0%
 

Dizzee is on a distinguished road

Send a message via AIM to Dizzee

  Old

i dont know php... but c++ works in the same way...

but personally i always use {}, you never know when you will have to add extra lines of code and in general it just looks better...

02-28-2007, 08:59 PM
#2
bluesaga is offline bluesaga
Status: Member
Join date: Feb 2007
Location:
Expertise:
Software:
 
Posts: 137
iTrader: 1 / 100%
 

bluesaga is on a distinguished road

  Old

Originally Posted by Dizzee View Post
i dont know php... but c++ works in the same way...

but personally i always use {}, you never know when you will have to add extra lines of code and in general it just looks better...
I do the same, im always adding "print 'did you get here yet?';" to my if's for debugging

Closed Thread    


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

  Posting Rules  
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump:
 
  Contains New Posts Forum Contains New Posts   Contains No New Posts Forum Contains No New Posts   A Closed Forum Forum is Closed