> On Aug 24, 2016, at 9:51 PM, Xiaodi Wu <xiaodi...@gmail.com> wrote: > > On Wed, Aug 24, 2016 at 9:47 PM, Xiaodi Wu <xiaodi...@gmail.com > <mailto:xiaodi...@gmail.com>> wrote: > Works on Linux :) > > And besides, on any platform where `type(of: bar) != NSString`, why should > you expect `bar really_is NSString == true`? Isn't bar *not really* NSString?
Because the pitch was for a version of ‘is’ which lacks the Objective-C bridging. The ‘is’ keyword matches subclasses of the type you specify as well as the type itself. Charles
_______________________________________________ swift-evolution mailing list swift-evolution@swift.org https://lists.swift.org/mailman/listinfo/swift-evolution