> On Dec 30, 2015, at 3:21 PM, Joe Groff via swift-dev <swift-dev@swift.org> > wrote: > > >> On Dec 30, 2015, at 2:41 PM, Luke Howard <lu...@padl.com> wrote: >> >> >>>> It looks like you're trying to poke at private runtime metadata >>>> structures; please don't do that. What are you trying to do? >>> >>> Per our exchange yesterday – implement NSStringFromClass() heuristics for >>> NSKeyedArchiver >> >> Sorry I mean NSClassFromString(). I thought indirecting the lookup through >> the metadata accessor was at least a little bit less bad than accessing it >> directly. :) > > If you're experimenting privately that's OK, but I'd prefer to get the > runtime functionality in place before committing anything. We already have > our hands full trying to clean up and stabilize the standard library/runtime > interfaces. > > -Joe > _______________________________________________ > swift-dev mailing list > swift-dev@swift.org > https://lists.swift.org/mailman/listinfo/swift-dev
Yep and that is why I am holding off on merging this just yet until we can get something up and rolling from the stdlib to support this. For now we could just limit these to the list of hand coded class to string conversions and omit the NSStringFromClass/NSClassFromString transform; that way we give the stdlib a bit of time to get back on their feet from the break and get this code in. _______________________________________________ swift-dev mailing list swift-dev@swift.org https://lists.swift.org/mailman/listinfo/swift-dev