Oleg wrote:igorw wrote:Yes, I would even add a space after function for lambdas, as
douglas crockford does.
I think almost nobody does that. So I'd rather not do it either.
I agree, and it looks ridiculous when there are no arguments:
Oleg wrote:For where to place the braces, as much as I hate braces on their own lines
I prefer them on their own line in PHP, but with the amount of anonymous functions in JavaScript, it looks stupid to have them on their own line, and stupid to have them inconsistent. I would be all for moving all braces to the same line in the JavaScript, but I can't really see that happening.
Oleg wrote:if this is the convention we use in php code it makes sense for consistency to use the same convention in js. Unless we get rid of inline js, then I would probably support moving braces up onto the previous line.
We're trying to get rid of most of the inline js in 3.1. I don't really understand this last bit of your post, though :-/