W3C home > Mailing lists > Public > public-webapps@w3.org > April to June 2015

Re: [webcomponents] How about let's go with slots?

From: Steve Orvell <sorvell@google.com>
Date: Fri, 15 May 2015 18:38:54 -0700
Message-ID: <CA+rMWZg4VTQ1RQ22pPBQSpPi2RFQOJTSg8DQ1VvhOL-4PDP=QA@mail.gmail.com>
To: Dimitri Glazkov <dglazkov@google.com>
Cc: Scott Miles <sjmiles@google.com>, "Tab Atkins Jr." <jackalmage@gmail.com>, public-webapps <public-webapps@w3.org>
With respect to Dimitri's *unpacking* notion, we think it can work.

In most cases today the redistribution tree is not large; however, if there
were a lot of final destination points in that tree, unpacking would be
cumbersome because you need to define a slot at every level for every final
destination point from that level's perspective. We'd like the working
group to explore some short hand syntax for this scenario.

The one hypothetical use case we came up with that would be problematic for
*unpacking* is dynamic creation of insertion points. This would require
dynamic unpacking and that seems pretty ugly since you'd have to break
encapsulation to do this. However, the use cases that one can imagine for
dynamic insertion points would be better solved by an imperative
distribution api anyway and are generally advanced enough that v2 seems ok
for them.

On Fri, May 15, 2015 at 5:55 PM, Dimitri Glazkov <dglazkov@google.com>
wrote:

>
>
> On Fri, May 15, 2015 at 5:45 PM, Scott Miles <sjmiles@google.com> wrote:
>
>> >> How does it work for redistribution
>>
>> We've done some investigation and think it can work.
>>
>
> Note that distributions work just fine with slots. The only thing that
> doesn't is partial redistributions, and we haven't been able to find a
> scenario that's a blocker:
> https://github.com/w3c/webcomponents/blob/gh-pages/proposals/Partial-Redistributions-Analysis.md
>
> Please, if you can think of one, let's look at it.
>
> :DG<
>
Received on Saturday, 16 May 2015 01:39:22 UTC

This archive was generated by hypermail 2.3.1 : Friday, 27 October 2017 07:27:31 UTC