[Javascript] line end character ;

Chris T christ at saeweb.com
Mon Jun 21 12:45:25 CDT 2004


I never use them. I thought they were only explicit end of line statements.
Not neccessary. That way, if you want to write multiple 'lines' worth of
code on the same line, you could do so. A new line would be considered an
implicit end of line statement.

Then again, I don't read up on standards all that much so if it says it's
required then that means I should start using the proper syntax, but I work
off of what's available and EVERY browser I know will read it correctly
without the semicolon.

Chris Tifer

----- Original Message ----- 
From: "Peter Brunone" <peter at brunone.com>
To: "'[JavaScript List]'" <javascript at LaTech.edu>
Sent: Monday, June 21, 2004 1:16 PM
Subject: RE: [Javascript] line end character ;


>
> I don't see why you wouldn't use it; even though some parsing
> engines don't notice if it's missing, it's not exactly good practice to
> flout the language standards.
>
> -----Original Message-----
> From: javascript-bounces at LaTech.edu On Behalf Of Mike Dougherty
>
> Should external script files use the line end character ; as a rule?
>
> I left it off, now the javascript code cruncher(s) expect to find it
>
> If the right thing to do is end lines with ";" then why isn't it
> required?
>
> I don't think developers should be allowed (by the language) to be lazy
> with regards to syntax,
> we're lazy enough everywhere else :)
> _______________________________________________
>
>
> _______________________________________________
> Javascript mailing list
> Javascript at LaTech.edu
> https://lists.LaTech.edu/mailman/listinfo/javascript




More information about the Javascript mailing list