[swift-users] Class vs Structures
Vitor Navarro
dev.vitor.navarro at gmail.com
Thu Jun 29 23:12:16 CDT 2017
Hi Alex,
Thank you for the reply, actually Taylor gave me a great answer which
solved my question, that was "struct or classes and when should we apply
each".
Regarding the reference I found this
https://github.com/raywenderlich/swift-style-guide#code-organization which
doesn't follow exactly the structs most of the times approach or the
protocol driven development (WWDC)
Again thanks.
2017-06-29 14:21 GMT-04:00 Alex Blewitt <alblue at apple.com>:
> On 29 Jun 2017, at 18:16, Vitor Navarro via swift-users <
> swift-users at swift.org> wrote:
>
> Hi,
>
> I know this question is probably done a thousand times, but I wanted to
> hear from Swift dev community.
>
>
> What is the question?
>
> I think both of them have right places for usage depending on the occasion
> but documentation, WWDC and the internet give opposite answers regarding
> this.
>
>
> Do you have references that you can share?
>
> Do you guys have any guideline regarding usage here?
>
>
> The Swift Programming Language sums up the similarities and differences
> between classes and structures quite well:
>
> https://developer.apple.com/library/content/documentation/
> Swift/Conceptual/Swift_Programming_Language/ClassesAndStructures.html
>
> Alex
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-users/attachments/20170630/c6991ad4/attachment.html>
More information about the swift-users
mailing list