Re: [webcomponents]: Platonic form of custom elements declarative syntax

On Wed, Apr 10, 2013 at 6:51 PM, Dimitri Glazkov <dglazkov@google.com>wrote:

> On Wed, Apr 10, 2013 at 6:38 PM, Rick Waldron <waldron.rick@gmail.com>
> wrote:
> > Everyone's answer to this should be "no"; changing the expected value of
> the
> > top level "this", in some magical way, simply won't work.
>
> Can you explain why you feel this way?
>

1) Because <script> has never done this before, so it better be compelling.
2) Because causing |this| to change by moving the <script> tag in the HTML
or adding a layer of elements etc seems likely to cause hard to understand
bugs.
3) Forcing the binding based on position is inflexible.

To be sure this is implicit-declarative vs explicit-imperative bias, not
evidence.

Oh, sorry you were asking Rick.
jjb

Received on Thursday, 11 April 2013 03:00:32 UTC