I really like(d) the mustache proposal but unfortunately reached the
same conclusion : too complicate and confusing for what it brings. It's
surprising that the fundamental difference between Put and DOP was
unknown from almost everybody (including myself), then a rapid and easy
conclusion knowing that DOP is not very used could be : eliminate DOP,
but it's not possible, one of its purpose is to avoid modifying again
the prototype properties as could do the json attack described in the posts.
Anyway, the discussion slipped to the technical aspects only, then
before imagining tons of syntax possibilities, maybe the use should be
considered (normal use, not super and more complicated things), simple
example :
div.style.{width:0,cssText='xxx'} or div.style.{width:0,cssText:'xxx'} ?
How from a developper perspective do I know if cssText was defined
inside CSSStyleDeclaration prototype or via outside getters/setters ???
Will I have to think about that each time I am using mustache ?
Then to secure it I would be enclined to use always "=", which could
look strange and confusing to normal developpers.
It's true that it can be compared somewhere to 'with' statement which is
almost never used because maybe not so usefull and everybody stated that
you can easily make a mistake, maybe the same may apply to mustache
Le 31/05/2012 11:35, Andreas Rossberg a écrit :
On 30 May 2012 22:33, Mark S. Miller<[email protected]> wrote:
My concern is indeed the overall complexity budget. And I agree. I'm happy
to have both of these if we can make some real complexity cuts elsewhere. I
look forward to that other conversation ;).
I have the same concern. The syntactic complexity and subtlety of this
proposal seems relatively high for the limited value it provides. If
we are going to have class syntax anyway, I doubt that mustache or any
of its variants will see enough use to warrant adding it as well.
/Andreas
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss
--
jCore
Email : [email protected]
Web : www.jcore.fr
Webble : www.webble.it
Extract Widget Mobile : www.extractwidget.com
BlimpMe! : www.blimpme.com
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss