-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Proposal to eliminate Screaming Snake Case from Swift #116
Conversation
Please change the title to something more understandable, drop the images, and squash the commits. Thanks! Also, what are the pro's and con's of #sourcelocation producing a struct vs a tuple? FWIW, I think that my concerns about how default args are implemented is overblown. Particularly if we went with a tuple representation, I don't see a problem with this. |
Tuples are just anonymous structs. I don't care, so long as there are labels. How about (module: String, file: String, line: Int, column: Int, function: String, parentType: String) -- E, googling "Squashing" -- but I'll probably delete the repo, and reload sans pics.
|
Squashing is sort of complicated but you can also use Hope that helps, On Tue, Jan 26, 2016 at 11:59 AM, Erica Sadun notifications@github.com
|
I'd suggest: Where symbol would be the fully qualified name like "Swift.Dictionary.init". |
We should bring this discussion back to the mailing list. I think using a tuple is a terrible idea :) |
What do you think of: #file, #lineNumber, #column, #symbol (e.g. Swift.Dictionary.init), #module, #contextDictionary and calling it a day?
No tuples for Doug, covers some of Chris's points. -- E
|
One other thing, please add to the proposal: |
ugh, DSO_HANDLE also has squished snakes around it. |
Will do. Also d'erp on not seeing that Module was subsumed into symbol. Will fix that too. -- E
|
Doug and I need to talk about this more. I’m leaning toward a direction of just having #line/#file/etc available as scalars, he prefers a single #sourcelocation concept of some sort. I’d like for he and I to get on the same page before the proposal goes farther if that is ok. -Chris
|
Huh, apparently I am impersonating @erica now. That last comment was from me. |
This PR was replaced by #123 Just a quick note for documentation. 😄 |
This proposal aims to eliminate Swift's screaming snake case like
__FILE__
and__FUNCTION__
and replacing instances with a common octothorpe-prefixed lower camel case#sourceLocation
representation.The Swift-Evolution discussion of this topic took place in the "[Review] SE-0022: Referencing the Objective-C selector of a method" thread and then in its own "[Proposal] Eliminating Swift's Screaming Snake Case Identifiers" thread