[swift-evolution] [Review] SE-0030 Property Behaviors

Trent Nadeau tanadeau at gmail.com
Thu Feb 11 14:51:29 CST 2016


Where [lazy] is currently used, could the syntax instead be
#behavior(lazy)? That prevents a possible future naming clash, keeps the #
meaning compiler-magic, and doesn't use the [], which is contentious.

On Thu, Feb 11, 2016 at 3:34 PM, Jim Hillhouse via swift-evolution <
swift-evolution at swift.org> wrote:

> > On Feb 11, 2016, at 12:13 AM, Chris Lattner via swift-evolution <
> swift-evolution at swift.org> wrote:
> >
> >       var [lazy] foo = 1738
> >       foo.[lazy].clear()
>
> -1 to the proposed use of the [] delimiters for property behaviors.
>
> I think from a purely stylistic POV, further exceptions to the []
> delimiters beyond current use for arrays, etc. amps-up ambiguity in Swift.
> _______________________________________________
> swift-evolution mailing list
> swift-evolution at swift.org
> https://lists.swift.org/mailman/listinfo/swift-evolution
>



-- 
Trent Nadeau
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20160211/412a520e/attachment.html>


More information about the swift-evolution mailing list