From: Joachim L. <lu...@ho...> - 2000-11-25 12:59:01
|
On a side-note, ECMA-script revision 4 (JavaScript 2.0 and JScript.net) will be able to run in a strict mode which requires the semi-colons. Even though they aren't required for the intended target JavaScript engines, I personally think the semi-colons should be there anyway. /Lunna At 2000-11-25 05:37 , you wrote: >In JavaScript its debatable whether you should or should not put a >semi-colon. The javascript engine will accept code with or without it, and >by not putting semi-colons you're saving yourself a byte per line. I've >never been one to do whitespace compression cause I just feel it's more >trouble than it's worth. Jar and gzip compression is a lot more reliable >and compresses more. > >Lately I've been putting semi's in my js code just by habit. It would be >fine with me if we want to standardize either way. > >Dan > > >On Fri, Nov 24, 2000 at 01:19:04PM -0800, Raymond Smith wrote: >> I have to concur. As eloquent as the dynapi, is I am also a bit stifled >by the lack of ';'. In addition to complicating debugging it also hampers >using any type of code compression (which unfortunately the size of dynapi2 >warrants). >> >> DS >> ----- Original Message ----- >> From: Doug Melvin >> To: dyn...@li... >> Sent: Friday, November 24, 2000 11:43 AM >> Subject: [Dynapi-Help] Why are there no semicolons?!?! >> >> >> Why is there not a single simicolon in any of these files? >> Does javascript not expect a line delimiter? >> Would not the code be easier to debug if we knew for a fact that the >'error on line 116' was really on line 116? >> >> Thank you, >> Doug Melvin >> Integrated System Solutions: Design, Development, Implementation and >Support >> Creative-Workshop.com >_______________________________________________ >Dynapi-Help mailing list >Dyn...@li... >http://lists.sourceforge.net/mailman/listinfo/dynapi-help |