Brendan Eich wrote:
Would property assignments be separated by comma or semicolon?
Eg.
o.( a = "alpha", b = "beta" )
v.
o.( a = "alpha"; b = "beta" )
Heh, I didn't say. Comma might be just as good meaning "no worse than
semicolon" in light of object literals having different-enough
brackets. Comma looks like the comma operator, and with () around it
looks like an argument list, OTOH.
On the principle of making different semantics look different, I'd go
with ; over , at this point. But perhaps there' s a more targeted
argument one way or the other?
A targeted homage: Smalltalk's fluent style used ; so we should too,
inside () after a dot.
But it's not a usability argument, just a salute to one of the eight
great programming languages.
/be
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss