> -----Original Message----- > From: Mike Shaver [mailto:[EMAIL PROTECTED] > Sent: 20. mars 2008 09:44 > To: Lars Hansen > Cc: P T Withington; es4-discuss Discuss > Subject: Re: ES4 draft: Error classes > > On Thu, Mar 20, 2008 at 12:27 PM, Lars Hansen > <[EMAIL PROTECTED]> wrote: > > A comment of this form preceded on the same line only by > whitespace: > > > > /**es:context=<scheme>;<data>;<line>*/ > > We did this with // comments in SpiderMonkey, because the > directives are inherently related to a line, and it avoids > questions about whether the line numbering indicates the > first or last line of the comment containing the directive. > We didn't care a lot about lines getting overlong, since > they're virtually always produced by tools as a way for > people to _not_ look at the source containing them. :)
OK, that's good feedback. What's the SpiderMonkey syntax? It would be better to go with something that is already in use, even if I expect the proposal here is a little more elaborate. The funny thing is that I went to some trouble in my previous writeup to disallow line terminators without drawing the obvious conclusion that I could switch to // style comments... Yay, time for more coffee. --lars _______________________________________________ Es4-discuss mailing list Es4-discuss@mozilla.org https://mail.mozilla.org/listinfo/es4-discuss