[swift-evolution] [Accepted] SE-0039: Modernizing Playground Literals

Step C schristopher at bignerdranch.com
Thu Mar 10 22:56:08 CST 2016


I've been looking for a good spot to jump in, and this looks like a great opportunity. I'll follow up on SR-917. 


> On Mar 10, 2016, at 1:14 PM, Chris Lattner via swift-evolution <swift-evolution at swift.org> wrote:
> 
> Proposal Link: https://github.com/apple/swift-evolution/blob/master/proposals/0039-playgroundliterals.md
> 
> The review of SE-0039 "Modernizing Playground Literals" ran from Mar 7…9, 2016. The proposal has been *accepted* with modifications:
> 
> - The community and core team uniformly agree that this proposal increases uniformity in the swift language.
> - We discussed how to rationalize naming and capitalization of identifiers in the “#” namespace and prefer to move to a model where it uses lower camel case.
> - The argument label on imageLiteral should be “resourceName” to describe the role of the string and avoid needless words, following the naming guidelines from SE-0006.
> 
> As such, the preferred spelling of these literals are:
> 
>  #colorLiteral(red: 0, green: 0, blue: 0, alpha: 0)
>  #imageLiteral(resourceName: “foo")
>  #fileLiteral(resourceName: “bar”)
> 
> Implementing this would be a great starter task for someone interested in getting involved in the compiler.  I filed SR-917 to track this effort.  Thank you to Erica Sadun for driving this forward!  
> 
> -Chris Lattner
> Review Manager
> _______________________________________________
> swift-evolution mailing list
> swift-evolution at swift.org
> https://lists.swift.org/mailman/listinfo/swift-evolution


More information about the swift-evolution mailing list