by arckiearc · 15y ago · 0 comments
foo bar: 'baz', quux('onoz')
Or are you just concerned about inconsistencies?I like not having to specify parentheses, but only do so when it's immediately obvious to a reader of the code what the result of the statement will be.
I have no more trouble recognizing these patterns than distinguishing between function calls and parens being used for grouping. Part of that is due to my own enthusiastic syntax highlighting for vim [1] that leaves identifiers as pretty much the only piece of text not highlighted. If you take a look at that file, the syntax in it is very old and comes from when : was the assignment operator which was dropped when implicit object literals were introduced.