[swift-evolution] [Review] SE-0190: Target environment platform condition

Xiaodi Wu xiaodi.wu at gmail.com
Mon Nov 20 20:11:00 CST 2017


IMO, “target environment” and “simulator” are clear and self-explanatory;
“destination” means nothing to me, and just because Xcode uses it in the
context of a GUI does not mean that it is the best solution. I’m very much
in favor of this proposal exactly as it is.

On Mon, Nov 20, 2017 at 20:50 Ben Rimmington via swift-evolution <
swift-evolution at swift.org> wrote:

> > 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`:
>
> e.g. <https://help.apple.com/xcode/mac/9.0/#/dev40e0a11aa>
>
> e.g. <https://help.apple.com/xcode/mac/9.0/#/dev7b20475ba>
> _______________________________________________
> swift-evolution mailing list
> swift-evolution at swift.org
> https://lists.swift.org/mailman/listinfo/swift-evolution
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20171121/2b49aed7/attachment.html>


More information about the swift-evolution mailing list