4 ms·
Maybe so, for some, but I find: {width:, height:, x_pos:, y_pos:} to be much more pleasant than {width: width, height: height, x_pos: x_pos, y_pos: y_pos} A
by nocman 5y ago
Maybe so, for some, but I find:
{width:, height:, x_pos:, y_pos:}
to be much more pleasant than
{width: width, height: height, x_pos: x_pos, y_pos: y_pos}
And the more items you add the more I find it useful. Yeah, it took some getting used to in Javascript after years and years without it, but I personally would not want to go back to not having it.
I'm not crazy about the colon/comma combo, but if I was writing in Ruby I suspect I'd get used to it after a while.