Re: Re: Stupid newbie question = Why don't I need a ; after this line?
| From: | -{ Rene Brehmer }- | Date: | Tue, 27 Jan 2004 16:16:22 +0000 |
| Subject: | Re: Re: Stupid newbie question = Why don't I need a ; after this line? | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-175938@lists.php.net to get a copy of this message | ||
I always use them ... but it's mainly 'cause if I ever need to expand the
code, I won't have to remember to add them ... it's for the same reason I
always use the braces '{ ... }' even though the short form would work just
as well in many cases ...
I tend to expand my code alot with time (as I make it more advanced), and
recycle it across multiple projects ... it's simply easier if all the
thingies are there already, as it produces far less errors when copy/pasting
from file to file
Rene
Fate would have it, that on Tue, 27 Jan 2004 09:56:02 -0600, Paul wrote:
>Thanks guys. Duhhh. I was taught to always put ;'s and any dev software that
>writes it's own code does the same. I also remember adding them because I
>was getting error's at some point, perhaps PHP3.
>
>Is it considered better practice to use them? Otherwise I've been wasting
>keystrokes. I only noticed this when I was going over some code.
--
Rene Brehmer
aka Metalbunny
http://metalbunny.net/
References, tools, and other useful stuff...