Re: [swift-evolution] [Pitch][stdlib] Command Line Option Parsing & Help

2016-08-17 Thread Chris Lattner via swift-evolution
> On Aug 17, 2016, at 9:41 AM, Will Field-Thompson via swift-evolution > wrote: > > I think it would be great to have something like this (at least the > "Arguments" component) as part of the standard distribution — maybe as a > corelib rather than as part of the standard library. Seeing as t

Re: [swift-evolution] [Pitch][stdlib] Command Line Option Parsing & Help

2016-08-17 Thread Félix Cloutier via swift-evolution
If we introduce a new API to parse command-line arguments now, we're committing to support it for a very long time. It seems to me that this is the kind of thing that could evolve with the language, so I'm not really in favor of fixing an implementation now. Imagine this hypothetical scenario:

Re: [swift-evolution] [Pitch][stdlib] Command Line Option Parsing & Help

2016-08-17 Thread Will Field-Thompson via swift-evolution
I think it would be great to have something like this (at least the "Arguments" component) as part of the standard distribution — maybe as a corelib rather than as part of the standard library. Seeing as this is certainly not in scope for phase 1 of Swift 4, maybe it would be better to start this a

[swift-evolution] [Pitch][stdlib] Command Line Option Parsing & Help

2016-08-17 Thread Russ Bishop via swift-evolution
I want to pitch a command line parsing addition to the standard library and get feedback before I polish up a full proposal. Swift is being positioned to fill numerous functions, including as a local scripting language. I think that’s great but having tried to use it for that purpose there are