> On May 31, 2016, at 3:04 PM, Erica Sadun via swift-evolution
> <[email protected]> wrote:
>
> let _ = scaleAndCropImage(image: myImage, toSize: size, operation: .fill)
>
> You would not be able to assign `.fill` to a variable and use that for the
> operation value.
This is my objection to this idea. It does not encourage reuse.
I would not be able to assign to a variable:
let selectedOperation = .fill
In order to then do this later in the program:
scaleAndCropImage(image: myImage, toSize: size, operation: selectedOperation)
_______________________________________________
swift-evolution mailing list
[email protected]
https://lists.swift.org/mailman/listinfo/swift-evolution