Re: [swift-users] Feedback for Dependency Injection Framework?

2016-06-16 Thread Ian Terrell via swift-users
dn't the `ViewController_B` be a dependency and not be instantiated > inside a `ViewController_A`? Or ViewControllers/Controllers are not > considered dependencies? > > Thanks, > Tadeas > > On Thu, Jun 16, 2016 at 10:50 PM Ian Terrell via swift-users < > swift-users@swift.o

Re: [swift-users] Feedback for Dependency Injection Framework?

2016-06-16 Thread Ian Terrell via swift-users
Hi Mike, Thanks for your response. :) Let me address your points. I apologize for the length; this is a topic I care about and I know my co-workers are reading it. :) I'm going to edit the message history for brevity. My first point of confusion is that these libraries seem to be less about >> d

Re: [swift-users] Feedback for Dependency Injection Framework?

2016-06-15 Thread Ian Terrell via swift-users
Hi Mike, Thanks for the library. It looks like you've done a lot of great hacking on it: Dependency injection is a topic near and dear to me. :) I'm very curious about this pattern and its libraries and have been investigating them more deeply lately. I haven't yet seen the value in this approach

Re: [swift-users] Can't get Error pattern matching to work cross framework and command line tool

2016-05-31 Thread Ian Terrell via swift-users
Is this a naming collision? Do multiple modules defined a Transaction.Error.NotFound? For instance, in your passing case, is the Transaction.Error.NotFound that is caught a Z.Transaction.Error.NotFound, or one in your local app module (i.e. CLI.Transaction.Error.NotFound). If your CLI module has

[swift-users] Why does the print function respect a CustomStringConvertible extension on Optional?

2016-04-28 Thread Ian Terrell via swift-users
A coworker had the idea to get rid of the "Optional("Bob")" default string value for Optional by adding the following extension to Optional: extension Optional: CustomStringConvertible { public var description: String { switch self { case .Some(let wrapped): return "\(wrapped)"