Re: [swift-dev] Mirror behavior

2016-09-24 Thread Will Stanton via swift-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

[swift-dev] Mirror behavior

2016-09-22 Thread Will Stanton via swift-dev
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 should/will have, but it does seem like some of iterating through children has been