[swift-evolution] [Review] SE-0005 Better Translation of Objective-C APIs Into Swift

Tony Parker anthony.parker at apple.com
Wed Jan 27 15:12:53 CST 2016


> On Jan 27, 2016, at 1:07 PM, Ben Rimmington via swift-evolution <swift-evolution at swift.org> wrote:
> 
> Doug,
> 
> For methods such as:
> 
>> func description(locale locale: AnyObject?) -> String
>> func description(locale locale: AnyObject?, indent level: Int) -> String
> 
> 1. Can the `locale` parameter be given a default `= nil` argument?
> 
> 2. Can the parameter type be changed to `NSLocale?` when translated into Swift?
> 

The Objective-C version takes either an NSDictionary or an NSLocale. I think we could consider it making NSLocale-only in Swift.

- Tony

> -- Ben
> _______________________________________________
> swift-evolution mailing list
> swift-evolution at swift.org
> https://lists.swift.org/mailman/listinfo/swift-evolution



More information about the swift-evolution mailing list