Re: [swift-dev] Debugging on Xcode

2017-08-11 Thread Michael Gottesman via swift-dev
Add to debugging the compiler? Sent from my iPhone > On Aug 11, 2017, at 11:38 AM, Robert Widmann via swift-dev > wrote: > > Full disclaimer: I haven’t looked into this bug, so I’m just going to > describe higher-level workflow tips. > >> On Aug 11, 2017, at 5:02 AM, Mike Choi via swift-dev

Re: [swift-dev] switches versus the visitor pattern?

2017-08-11 Thread John McCall via swift-dev
> On Aug 11, 2017, at 7:05 PM, David Zarzycki via swift-dev > wrote: > Hi Slava, > > Thanks. I’m not planning on seeking them out. I just want to minimize future > merge conflicts with an experimental branch I’m working on. The visitor > pattern helps people like me by minimizing the number of

Re: [swift-dev] switches versus the visitor pattern?

2017-08-11 Thread David Zarzycki via swift-dev
Hi Slava, Thanks. I’m not planning on seeking them out. I just want to minimize future merge conflicts with an experimental branch I’m working on. The visitor pattern helps people like me by minimizing the number of boilerplate updates a person needs to do after adding a new type to the type sy

Re: [swift-dev] switches versus the visitor pattern?

2017-08-11 Thread Slava Pestov via swift-dev
I’ve seen some switches over TypeKind more easily expressed as a series of if/else if statements also. However unless you come across an ugly switch that you want to refactor while working on something else, I probably wouldn’t spend time actively seeking them out and changing them. I don’t thi

[swift-dev] switches versus the visitor pattern?

2017-08-11 Thread David Zarzycki via swift-dev
Hello, Before I spend time creating patches, are there arguments against converting exhaustive switch statements to the visitor pattern in the Swift source base? In particular, I’m curious about switches that reason about the TypeKind enum. Thanks, – Dave ___

Re: [swift-dev] Debugging on Xcode

2017-08-11 Thread Robert Widmann via swift-dev
Full disclaimer: I haven’t looked into this bug, so I’m just going to describe higher-level workflow tips. > On Aug 11, 2017, at 5:02 AM, Mike Choi via swift-dev > wrote: > > Hello Swift community, > > I’m currently trying to debug SR-5556 > https://bugs.swift.org/plugins/servlet/mobile#issu

Re: [swift-dev] Debugging on Xcode

2017-08-11 Thread Brian King via swift-dev
Hey Mike, I've found this presentation by Ayanonagon to be helpful in getting a functional development environment up and running: https://speakerdeck.com/ayanonagon/contributing-to-swift Also, I'm going to be facilitating a workshop at try! Swift NYC to help people set up functional development

[swift-dev] Debugging on Xcode

2017-08-11 Thread Mike Choi via swift-dev
Hello Swift community, I’m currently trying to debug SR-5556  https://bugs.swift.org/plugins/servlet/mobile#issue/SR-5556. TL;Dr This bug has to do with Xcode not providing a fixit when it should. To proceed, I built Swift and generated an Xcode project but have no idea how to debug the problem.

Re: [swift-dev] Compiling Swift macOS 10.12.4 Xcode 9 beta 4

2017-08-11 Thread Trevör Anne Denise via swift-dev
** BUILD SUCCEEDED ** Thank you !! :) > Le 10 août 2017 à 18:21, Mark Lacey a écrit : > > > >> On Aug 10, 2017, at 8:28 AM, Trevör ANNE DENISE via swift-dev >> mailto:swift-dev@swift.org>> wrote: >> >> Hello everyone, >> >> >> I followed the instructions on the Swift GitHub for installing