[Javascript] line end character ;
Troy III Ajnej
trojani2000 at hotmail.com
Thu Jun 24 17:46:35 CDT 2004
you are missing the point here, a semicolon is an add-on, optional, and it's
included as a support for nonpreviewable text html editors, so the browser
should know where the statment breaks in this 1-line txt files. No other
reason at all...
>From: Hakan Magnusson <hakan at backbase.com>
>Reply-To: "[JavaScript List]" <javascript at LaTech.edu>
>To: "[JavaScript List]" <javascript at LaTech.edu>
>Subject: Re: [Javascript] line end character ;
>Date: Wed, 23 Jun 2004 15:19:55 +0000
>
>The way I see it, the only reason not to supply a semicolon at the end of
>each statement in JavaScript is being lazy, and being lazy is not a valid
>reason. There's absolutely NO advantages with omitting it, only possible
>breakdowns in a number of situations.
>
>Mark Wonsil wrote:
>>For as long as I have been coding, it has been taught to not rely on
>>default
>>behaviors. The world changes and your code will break at some point. Be
>>explicit as much as you can.
>
>Amen. Print, frame, put on the wall next to your monitor.
>
>Regards,
>H
>_______________________________________________
>Javascript mailing list
>Javascript at LaTech.edu
>https://lists.LaTech.edu/mailman/listinfo/javascript
_________________________________________________________________
Help STOP SPAM with the new MSN 8 and get 2 months FREE*
http://join.msn.com/?page=features/junkmail
More information about the Javascript
mailing list