[swift-evolution] [swift-build-dev] [Review] SE-0158 Package Manager Manifest API Redesign

Ankit Aggarwal ankit_aggarwal at apple.com
Thu Mar 9 00:34:50 CST 2017


> +1, although I don’t know why we're supporting this:
>
> // 1.5.8 ..< 2.0.0.package(url: "/SwiftyJSON", from: "1.5.8"),
>
> when, at least as far as I can tell, this:
>
> // 1.5.8 ..< 2.0.0.package(url: "/SwiftyJSON", .uptoNextMajor("1.5.8")),
>
> does the same thing, and the spelling is, at least to me, clearer as well.
> Dunno, maybe the “from” version is a term of art that I’m just not familiar
> with.
>
>
Hi David,

Thank you for the review.

It is true that `from` and `.uptoNextMajor` are exactly same. We think that
the most widely used requirement will be `.uptoNextMajor`, so we wanted to
provide a shorthand for it.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20170309/44ee9df0/attachment.html>


More information about the swift-evolution mailing list