Re: [swift-corelibs-dev] [swift-dev] Mirror behavior

2016-09-24 Thread Will Stanton via swift-corelibs-dev
Hello Enrico, Thank you for the reply! If the goal of `Mirror` is reflection, wouldn’t the full structure of a type need to be exposed by its `Mirror`? And even if the goal is a more limited form of inspection, wouldn’t it still be necessary to make the default implementation, which exposes a

Re: [swift-corelibs-dev] [swift-dev] Mirror behavior

2016-09-23 Thread Enrico Granata via swift-corelibs-dev
> On Sep 22, 2016, at 10:08 PM, Will Stanton via swift-dev > wrote: > > Hello, > > I had a question about the intended behavior/functionality of mirrors in > Swift/Swift Foundation types. > > In general, should a Mirror reference all variables in a type? > I’m not sure what scope mirrors sh