[swift-evolution] [Proposal] Eliminating Swift's Screaming Snake Case Identifiers

Remy Demarest remy.demarest at gmail.com
Sun Jan 24 17:12:14 CST 2016

+1 I love the idea of having not-only consistent naming convention for compiler-magic code starting with #.

And I also love the idea that source location would be one object that you can print to get the full story while still retaining the possibility to use each individual components as needed, which is probably the rarer case. I never find myself wanting only some of properties and usually don't include them simply because it takes longer to write the format properly, if I can get them all in one go it's certainly a win.

Remy Demarest
remy.demarest at gmail.com

> Le 23 janv. 2016 à 18:46, Erica Sadun via swift-evolution <swift-evolution at swift.org> a écrit :
> Pull request: https://github.com/apple/swift-evolution/pull/116 <https://github.com/apple/swift-evolution/pull/116>
> -- E
>> On Jan 22, 2016, at 5:40 PM, Chris Lattner <clattner at apple.com <mailto:clattner at apple.com>> wrote:
>>> On Jan 22, 2016, at 1:43 PM, Jack Lawrence <jackl at apple.com <mailto:jackl at apple.com>> wrote:
>>> Indeed. Here’s the grammar from TSPL:
>>> line-control-statement → #line­
>>>  <>line-control-statement → #line­line-number <https://developer.apple.com/library/ios/documentation/Swift/Conceptual/Swift_Programming_Language/Statements.html#//apple_ref/swift/grammar/line-number>­file-name <https://developer.apple.com/library/ios/documentation/Swift/Conceptual/Swift_Programming_Language/Statements.html#//apple_ref/swift/grammar/file-name>>>  <>line-number → A decimal integer greater than zero
>>>  <>file-name → static-string-literal <https://developer.apple.com/library/ios/documentation/Swift/Conceptual/Swift_Programming_Language/LexicalStructure.html#//apple_ref/swift/grammar/static-string-literal>> 
>> Huh ok, I forgot we supported that.  We could handle that by requiring that form of #line to be at the start of a line, if necessary.
>> -Chris
> _______________________________________________
> swift-evolution mailing list
> swift-evolution at swift.org
> https://lists.swift.org/mailman/listinfo/swift-evolution

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20160124/e4b80238/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 1402 bytes
Desc: not available
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20160124/e4b80238/attachment.p7s>

More information about the swift-evolution mailing list