[swift-evolution] [Pitch] Make Self an alias for object type in object definition
Adam Nemecek
adamnemecek at gmail.com
Sun May 22 13:24:06 CDT 2016
What do you guys think about aliasing the type of the current object with
the Self keyword?
E.g. instead of writing
class Test {
static var value = 0
func printValue() {
print(Test.value)
}
}
One could write
class Test {
static var value = 0
func printValue() {
print(Self.value)
}
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20160522/673a49d2/attachment.html>
More information about the swift-evolution
mailing list