From: Daniel H. <dhe...@ya...> - 2000-11-25 01:41:23
|
Hi Dan. I would prefer semi column. I am used perform some processing on js files, to obfuscate and compress : put all the file on a single line (then ; are better), replace symbols by random names (function, members, variables, ...), and use gz compression. Thanks Daniel. ----- Original Message ----- From: Dan Steinman <dy...@fu...> To: <dyn...@li...> Sent: Saturday, November 25, 2000 5:37 AM Subject: Re: [Dynapi-Help] Why are there no semicolons?!?! > 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 > |