[swift-users] Printing Enums?

2017-07-17 Thread Michael Rogers via swift-users
Hi, All: Can someone please enlighten me as to why the first enum works as expected, giving me Melbourne, but the second gives UIModalPresentationStyle rather than fullScreen? enum City { case Melbourne, Chelyabinsk, Bursa } let city = City.Bursa print(city) // prints "Melbourne" let

[swift-users] CustomStringConvertible?

2017-09-08 Thread Michael Rogers via swift-users
Quick question (for my own edification, as well as to demonstrate to my students the power of this mail list ), is CustomStringConvertible a stored property or a computed property? The docs say the latter, but when using Xcode’s fabulous FIX button, it seems to imply it’s a stored property.

Re: [swift-users] CustomStringConvertible?

2017-09-08 Thread Michael Rogers via swift-users
S) web server framework in Swift > > > > > > > >> On 08 Sep 2017, at 19:47, Michael Rogers via swift-users >> <swift-users@swift.org> wrote: >> >> Quick question (for my own edification, as well as to demonstrate to my >> student

[swift-users] Justification for Swift Design Decisions?

2017-10-31 Thread Michael Rogers via swift-users
Hi, All: I’m giving a presentation on Swift this weekend, and am trying to find justification for some of the design decisions that they made. Is there anything out there that goes into the detail of this? Like … why did the use “ for characters, or \() for String interpolation? Thanks,

Re: [swift-users] Justification for Swift Design Decisions?

2017-10-31 Thread Michael Rogers via swift-users
> On Oct 31, 2017, at 3:39 PM, Austin Zheng wrote: > > To expand on this, most (if not all) the proposals in the list of proposals > on GitHub (https://github.com/apple/swift-evolution/tree/master/proposals >