on Sun Jan 15 2017, Jacob Bandes-Storch <jtbandes-AT-gmail.com> wrote:
> On Sat, Jan 14, 2017 at 3:41 PM, Dave Abrahams via swift-evolution < > swift-evolution@swift.org> wrote: > >> >> on Fri Jan 13 2017, John McCall <swift-evolution@swift.org> wrote: >> >> > I'm also not sure we'd ever want the element type to be inferred from >> > context like this. Generic subscripts as I see it are about being >> > generic over *indexes*, not somehow about presenting a polymorphic >> > value. >> >> Actually I *would* want to be able to do that, though I admit it's the >> 1% case (or less). >> > > 1%? Wouldn't many JSON libraries, for instance, be eager to take advantage > of this? Y'all brought up plenty of examples I hadn't thought of, so 1% might be too low. -- -Dave _______________________________________________ swift-evolution mailing list swift-evolution@swift.org https://lists.swift.org/mailman/listinfo/swift-evolution