[swift-evolution] [swift-build-dev] [Draft] Package Manager Custom Targets Layout

Ankit Aggarwal ankit_aggarwal at apple.com
Wed Mar 29 12:56:44 CDT 2017


We discussed variadic overloads during the manifest redesign proposal but ultimately rejected <https://github.com/apple/swift-evolution/blob/master/proposals/0158-package-manager-manifest-api-redesign.md#alternatives-considered> it. We could add an overload for a singular source file (instead of variadic) but I think its simpler to just have one option, and it is also easier when you want to extend your source list form one to two.

I think parsing is not a concern because tools are expected to ask for JSON representation and not directly parse the swift file.


> On 29-Mar-2017, at 11:18 PM, David Sweeris <davesweeris at mac.com> wrote:
> 
> 
> On Mar 29, 2017, at 10:19, Ankit Aggarwal via swift-build-dev <swift-build-dev at swift.org <mailto:swift-build-dev at swift.org>> wrote:
> 
>> The proposal <https://github.com/aciidb0mb3r/swift-evolution/blob/custom-targets-layout/proposals/NNNN-package-manager-custom-targets-layout.md> is updated with this change.
> 
> What do we think about adding convenience inits that take a single parameter in place of the []s, for when we're only passing one value?
> 
> The down side is that it makes it more complicated for 3rd party tools to parse. Dunno if that's a concern.
> 
> - Dave Sweeris

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20170329/b2bd1919/attachment.html>


More information about the swift-evolution mailing list