SE-0253: Static callables

Pure speculation: I don't think there are truly fundamental blockers to supporting static func (), but it would definitely require parser changes (and maybe hard complications).

The important question is: is func () is a good/desirable name for call-syntax delegate methods? () does match the syntax for function application, but I'm not convinced it's an ideal name in Swift.

A similar direction from the pitch thread is to name call-syntax delegate methods func self (or static func Self, the static is added by me in the code below):


Personally, I prefer call declarations and unnamed methods (e.g. call func _) over both func () and func self. I feel the latter are more confusing.

1 Like