[Amendment] SE-0022: Referencing the Objective-C selector of a method


(Joe Groff) #1

Hi everyone. Accepted proposal SE-0022, "Referencing the Objective-C selector of a method", has been amended with the following changes:

  https://github.com/apple/swift-evolution/commit/1dfd6cd4fc2e9874d5db8aef6a5f41d6556b2ca2

Alex Hoppen, who undertook the work to implement the related proposal SE-0064, "Referencing the Objective-C selector of property getters and setters", noted that by accepting arbitrary expressions inside a #selector expression, we made it difficult to handle the getter and setter selector cases introduced by SE-0064. It was not the original proposal's attempt to accept arbitrary expressions, only expressions that happened to form a valid method reference, and the amendment seeks to clarify this intent.

-Joe