From: Doug M. <do...@cr...> - 2000-11-24 16:45:15
|
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=20 |
From: Pascal B. <pa...@dy...> - 2000-11-24 17:26:50
|
you only have to use a semicolon between two distinct commands on a single line.. eg.: document.write('test'); return true this could be written as: document.write('test') return true Pascal Bestebroer pa...@dy... http://www.dynamic-core.net -----Oorspronkelijk bericht----- Van: dyn...@li... [mailto:dyn...@li...]Namens Doug Melvin Verzonden: vrijdag 24 november 2000 20:44 Aan: dyn...@li... Onderwerp: [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 |
From: Raymond S. <dst...@or...> - 2000-11-24 21:29:55
|
True, in 'loosely' scripted code. But since this API is an spectacular = demonstration of OOP in js I was a bit suprised to find and 'loose' in = it at all... =20 ----- Original Message -----=20 From: Pascal Bestebroer=20 To: dyn...@li...=20 Sent: Friday, November 24, 2000 9:30 AM Subject: RE: [Dynapi-Help] Why are there no semicolons?!?! you only have to use a semicolon between two distinct commands on a = single line.. eg.: document.write('test'); return true this could be written as: document.write('test') return true Pascal Bestebroer pa...@dy... http://www.dynamic-core.net=20 -----Oorspronkelijk bericht----- Van: dyn...@li... = [mailto:dyn...@li...]Namens Doug Melvin Verzonden: vrijdag 24 november 2000 20:44 Aan: dyn...@li... Onderwerp: [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=20 |
From: Raymond S. <dst...@or...> - 2000-11-24 21:23:49
|
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 -----=20 From: Doug Melvin=20 To: dyn...@li...=20 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=20 |
From: Dan S. <dy...@fu...> - 2000-11-24 23:15:48
|
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 |
From: Raymond S. <dst...@or...> - 2000-11-25 01:39:47
|
To bad you're not comprised of 12 members, ... we could call you "Digital's Dirty Dozen". This, in my humble opinion is the best body of Javascript work on the web. The more I work with it the more I understand just how damn powerful it is today and the amazing potential it has to even mature more thru collaboration. I bow.. Cheers DS, aka digital strider |
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 > |
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 |