Tab Atkins Jr. wrote:
On Wed, May 30, 2012 at 4:54 PM, Rick Waldron<[email protected]> wrote:
On Wednesday, May 30, 2012 at 7:40 PM, Tab Atkins Jr. wrote:
If you use the dataset API, like you should, there's no problem:
widget.{
...
dataset.disqusId = "dsq1";
};
Maybe Dave can clarify, but I think it would actually be:
widget.{
dataset.{
disqusId = "...";
}
};
That's possible, sure, but not necessary. My form is valid as well,
and easier if you're only setting one property.
Right -- people sometimes write obj.{foo: bar} (mustache) or equivalent
(obj.(foo = bar) or obj.{foo = bar}) but these are poor style and in an
expression context, obj.foo = bar (for the [[Put]] forms only) should be
used instead.
Given this simplification at the outermost or outside-the-nest sense, we
could support what you wrote: widget.{ ... dataset.disqusId = "dsq1";
... } deeper in the nest. I agree we should.
/be
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss