Oleg wrote: igorw wrote:
Yes, I would even add a space after function for lambdas, as douglas crockford
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
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 :-/