> On Mar 15, 2016, at 2:29 AM, Ben Rimmington <m...@benrimmington.com> wrote:
> 
> 
>> On 14 Mar 2016, at 22:30, Dave Abrahams via swift-evolution 
>> <swift-evolution@swift.org> wrote:
>> 
>> on Fri Mar 11 2016, Chris Lattner <swift-evolution@swift.org> wrote:
>> 
>>> This provides syntax that looks like an imperative function call that
>>> affects the logical source location at that point in the file.
>> 
>> FWIW, to me it looks like a declarative statement about how the compiler
>> should treat the following lines of source.  A name beginning with "set"
>> would be more imperative, IMO.  I like declarative better.
> 
> Alternatives:
> 
> #openVirtualFile(...)
> #closeVirtualFile(...)
> 
> #pragma openVirtualFile(...)
> #pragma closeVirtualFile(...)
> 
> #if openVirtualFile(...)
> #endif
> 
> Reference:
> 
> `Parser::parseLineDirective`
> <https://github.com/apple/swift/blob/master/lib/Parse/ParseDecl.cpp#L2618>
> 
> -- Ben

I think maybe my posting wasn't clear.  I'm not looking for alternatives, FWIW. 
 I like the resolution *because* it looks declarative to me.
_______________________________________________
swift-evolution mailing list
swift-evolution@swift.org
https://lists.swift.org/mailman/listinfo/swift-evolution

Reply via email to