> On Jun 12, 2016, at 10:43 PM, Azuan via swift-users <[email protected]>
> wrote:
>
> 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.
Immutable isn’t the same as non-overridable. Immutable just means that its
value in a single instance can’t be changed after initialization. But there’s
nothing stopping you from creating a subclass that has a different value for
that constant.
—Jens
_______________________________________________
swift-users mailing list
[email protected]
https://lists.swift.org/mailman/listinfo/swift-users