[swift-users] Usage of final let?

Karl razielim at gmail.com
Mon Jun 13 20:34:00 CDT 2016


Welcome!

That’s a fair point; “final let” doesn’t make sense. You should file a bug report on https://bugs.swift.org

Karl

> On 13 Jun 2016, at 07:43, Azuan via swift-users <swift-users at swift.org> wrote:
> 
> Hi,
> 
> This is my first email to this mailing list. Do correct me if I did something wrong :)
> 
> Read in docs, saying that by using final on variables, you can’t override it in it’s subclass. Using `final var` makes sense to me. But what is the purpose of using `final let` since by using `let`, it is already an immutable variable anyway.
> 
> Regards,
> Azuan
> 
> _______________________________________________
> swift-users mailing list
> swift-users at swift.org <mailto:swift-users at swift.org>
> https://lists.swift.org/mailman/listinfo/swift-users <https://lists.swift.org/mailman/listinfo/swift-users>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-users/attachments/20160614/fd2eaf71/attachment.html>


More information about the swift-users mailing list