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

Douglas Gregor dgregor at apple.com
Sat Jan 30 13:53:49 CST 2016


> On Jan 29, 2016, at 7:32 PM, John Randolph via swift-evolution <swift-evolution at swift.org> wrote:
> 
> 
>> On Jan 26, 2016, at 2:53 PM, Jacob Bandes-Storch via swift-evolution <swift-evolution at swift.org> wrote:
>> 
>> Here are some others from the swift-3 branch; I'm not sure where these currently fall under the guidelines:
>> 
>> CIImage
>>  func byCompositingOverImage(dest: CIImage) -> CIImage
>>  func byCroppingTo(rect: CGRect) -> CIImage
>>  func byClampingToExtent() -> CIImage
> 
> I’m not wild about using “by” in these names.  I’d rather this were :
> 
> CIImage
>  func compositedOverImage(dest: CIImage) -> CIImage
>  func croppedTo(rect: CGRect) -> CIImage
>  func clampedToExtent() -> CIImage

That’s a good point; the implementation is failing to remove the “by” in these cases. I’ll take a look.

	- Doug




More information about the swift-evolution mailing list