Re: [swift-evolution] [Review] SE-0145: Package Manager Version Pinning

2016-11-04 Thread Daniel Resnick via swift-evolution
-1, though I do strongly think we should have version pinning. I agree with the others who believe that dependencies should be pinned by default. This doesn't mean that you have to check the pin/lock file into source control. I have a good amount of experience developing apps and libraries with

Re: [swift-evolution] [Pitch] inout with capture variable

2016-10-05 Thread Daniel Resnick via swift-evolution
You can currently achieve the same result if you remove `[inout a]` since `var`s are captured by reference. On Wed, Oct 5, 2016 at 9:06 PM, Cao Jiannan via swift-evolution < swift-evolution@swift.org> wrote: > for example: > > var a = 1 > > let block = { [inout a] in > a += 1 > } > >

Re: [swift-evolution] PITCH: New :== operator for generic constraints

2016-08-16 Thread Daniel Resnick via swift-evolution
It's weird to me that protocol-typed objects aren't seen as conforming to that protocol. I would intuitively expect this function to work for both a sequence of Pepper types and other types that conform to Pepper: func pick(peppers: PepperType) where PepperType.Iterator.Element: Pepper { //

Re: [swift-evolution] [Proposal] Qualified Imports and Modules

2016-07-18 Thread Daniel Resnick via swift-evolution
> > Modules names are tied to a directory structure that describes their > location relative to the current module and it will now be an error to > violate this rule What is the rationale for this rule? I realize this is a common convention but what is gained from strictly enforcing it? On Mon,

Re: [swift-evolution] Proposals: (1) Forbidding custom `==` for value types, (2) `dispatch` keyword, (3) `default`-result for methods with `Self`, and (4) Poor-Mans-Existentials

2016-07-14 Thread Daniel Resnick via swift-evolution
Forbidding custom `==` for value types would break equality for all Swift collection types, since they use reference types behind the scenes for storing memory and copy on write semantics. Furthermore, why should properties pointing to reference types always use `===`? What if the reference type

Re: [swift-evolution] [swift-evolution-announce] [Review #2] SE-0091: Improving operator requirements in protocols

2016-07-07 Thread Daniel Resnick via swift-evolution
> > What is your evaluation of the proposal? > +1 > Is the problem being addressed significant enough to warrant a change to > Swift? > Yes, the current situation of defining a protocol required operator function globally is potentially confusing and feels inconsistent. > Does this proposal

Re: [swift-evolution] [Review] SE-0116: Import Objective-C id as Swift Any type

2016-07-05 Thread Daniel Resnick via swift-evolution
> > What is your evaluation of the proposal? > +1 Is the problem being addressed significant enough to warrant a change to > Swift? > Yes. Passing value types to Objective-C APIs taking AnyObject requires creating wrapper classes that store the value types. This change would eliminate that

Re: [swift-evolution] Thoughts on replacing \() with $() or some other symbol

2016-06-21 Thread Daniel Resnick via swift-evolution
I also disagree for the same reasons that Gwynne and Brent mentioned: I find '\(...)' easy to read, fine to type, and consistent with other string escaping syntax. On Tue, Jun 21, 2016 at 3:55 PM, Brent Royal-Gordon via swift-evolution < swift-evolution@swift.org> wrote: > > I find that typing