[swift-evolution] [Revision] SE-0034 - Disambiguating Line Control Statements from Debugging Identifiers

Greg Parker gparker at apple.com
Mon Mar 14 17:09:57 CDT 2016


> On Mar 12, 2016, at 2:17 AM, Антон Жилин via swift-evolution <swift-evolution at swift.org> wrote:
> 
> #sourceLocation(file: "foo", line: 42)    // Set logical position.
> #sourceLocation()                                // Reset logical position.
> 
> I fully support renaming of the first directive, but have a tiny concern about the second one.
> Does sourceLocation name reflect its purpose? Maybe resetSourceLocation or something like that?

Perhaps
    #sourceLocation(reset)

which provides space for other potential future constructs
    #sourceLocation(push)
    #sourceLocation(file:"foo", line: 42)
    …
    #sourceLocation(pop)


-- 
Greg Parker     gparker at apple.com <mailto:gparker at apple.com>     Runtime Wrangler


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20160314/fa210acf/attachment-0001.html>


More information about the swift-evolution mailing list