Proposal: Guards and Trademarks

2011-05-06 Thread Waldemar Horwat
I placed guards and trademarks on the agenda for this month's meeting. They're intentionally a relatively bare-bones and secure mechanism: http://wiki.ecmascript.org/doku.php?id=strawman:guards http://wiki.ecmascript.org/doku.php?id=strawman:trademarks These partially rely on a mechanism for

arrow syntax unnecessary and the idea that function is too long

2011-05-06 Thread Peter Michaux
I read Brendan's recent article http://brendaneich.com/2011/05/my-jsconf-us-presentation/ He asked for community members to make their feelings known and the es-discuss list as one of the places to do it. In his article, Brendan shows a slide with the following content

Re: arrow syntax unnecessary and the idea that function is too long

2011-05-06 Thread David Bruant
Le 07/05/2011 02:04, Peter Michaux a écrit : I'd like to ask when is function too long? I never type it thanks to my text editor's features so I know it is not too long for developers with a good editor. What editor are you using? I have always been disappointed in my experience with IDEs and

Re: arrow syntax unnecessary and the idea that function is too long

2011-05-06 Thread Brendan Eich
On May 6, 2011, at 5:04 PM, Peter Michaux wrote: The only possible category is be a better language but the arrow syntax won't make JavaScript a better language for complex applications or libraries in comparison to any other kind of JavaScript code. Usability is always on the top three

Re: arrow syntax unnecessary and the idea that function is too long

2011-05-06 Thread Peter Michaux
On Fri, May 6, 2011 at 6:39 PM, Brendan Eich bren...@mozilla.com wrote: But again, you can use 14 characters if you want. The problem is that the author of the code that I'm reading may have used the arrow syntax and then I'm stuck reading it. This is shorthand, and only shorthand. And

Re: arrow syntax unnecessary and the idea that function is too long

2011-05-06 Thread Andrew Dupont
On May 7, 2011, at 12:42 AM, Peter Michaux wrote: Yes and readability counts. JavaScript's function syntax is already *highly* usable and readable. Many people, including me, would disagree. On matters of taste, I'd want the committee to listen to all interested parties and try to pick the