[swift-evolution] [Review] SE-0190: Target environment platform condition
me at benrimmington.com
Mon Nov 20 19:50:06 CST 2017
> On 21 Nov 2017, at 00:17, Jonathan Hull wrote:
> I would also like to see something shorter than targetEnvironment(), but it is somewhat infrequently used, so it isn’t that big a deal. It is just compared to os() and arch(), this is kind of a beast. It is a power user thing, so maybe something like ‘env()’ would work? I normally try to avoid abbreviations, but we have arch() as precedent. The word ‘Simulator’ should be what stands out...
Xcode uses `destination`:
More information about the swift-evolution