Hi Pushkar, We decided to keep the NS on NSRegularExpression because we know that a strong goal for the Swift language is to have built-in support for regex. We wanted to be cautious about taking the name without knowing more about how that feature would shake out.
We should get a JIRA filed or a PR up to put the NS back for the class name in swift-corelibs-foundation. Thanks, - Tony > On Sep 16, 2016, at 6:16 AM, Pushkar N Kulkarni via swift-corelibs-dev > <swift-corelibs-dev@swift.org> wrote: > > Hello, > > The NS prefix from NSRegularExpression seems to have been dropped only in > open source Foundation. On Darwin the class is still called > NSRegularExpression. > > https://github.com/apple/swift-corelibs-foundation/blob/master/Foundation/NSRegularExpression.swift#L30 > > <https://github.com/apple/swift-corelibs-foundation/blob/master/Foundation/NSRegularExpression.swift#L30> > > I went through the Drop NS prefix proposal > <https://github.com/apple/swift-evolution/blob/master/proposals/0086-drop-foundation-ns.md> > but couldn't relate this to any of the rules mentioned there (except for a > possibility that we will have a RegularExpression value type in future only > on Darwin!) > > Is there any particular reason for this difference? > > Thanks in advance! > > Pushkar N Kulkarni, > IBM Runtimes > > Simplicity is prerequisite for reliability - Edsger W. Dijkstra > > > _______________________________________________ > swift-corelibs-dev mailing list > swift-corelibs-dev@swift.org > https://lists.swift.org/mailman/listinfo/swift-corelibs-dev
_______________________________________________ swift-corelibs-dev mailing list swift-corelibs-dev@swift.org https://lists.swift.org/mailman/listinfo/swift-corelibs-dev