> On 14 Mar 2016, at 22:30, Dave Abrahams via swift-evolution > <[email protected]> wrote: > > on Fri Mar 11 2016, Chris Lattner <[email protected]> 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 _______________________________________________ swift-evolution mailing list [email protected] https://lists.swift.org/mailman/listinfo/swift-evolution
