When you access a static member of a type using the dot shortcut, Swift
evaluates the expression immediately.

Are you proposing that when you access a member of an instance, Swift
generate a closure?

Or are you proposing that Swift generate a closure or not depending on how
the expression's value is to be used?

Either way seems inconsistent with the static member situation, and like a
potential source of confusion: not everyone uses the One True Convention™
of .Capitalized .Static .Members and .lowercase .instance .members, so one
cannot reliably deduce the outcome based on the case of the character after
the dot.

On Thu, Dec 17, 2015 at 9:27 PM, Matthew Johnson via swift-evolution <
swift-evolution@swift.org> wrote:

> anArray.map{$0.anInstanceMethod()}
>
> becomes:
>
> anArray.map(.anInstanceMethod())
>
_______________________________________________
swift-evolution mailing list
swift-evolution@swift.org
https://lists.swift.org/mailman/listinfo/swift-evolution

Reply via email to