[swift-evolution] [Proposal] Warn about implicit property access in own setter
marc at knaup.koeln
Tue Dec 15 20:41:54 CST 2015
That approach is mentioned in "Alternatives considered".
On Dec 16, 2015 03:39, "Dennis Lysenko" <dennis.s.lysenko at gmail.com> wrote:
> Other possible solution: why not just remove the default "newValue" and
> force the user to manually specify it instead?
> On Tue, Dec 15, 2015, 6:02 PM Marc Knaup via swift-evolution <
> swift-evolution at swift.org> wrote:
>> Hello everyone,
>> I would like to propose yielding a warning when a property's getter is
>> used from within its setter implicitly without using "self.".
>> This can lead to programming errors which are very easy to miss and lead
>> to unexpected behavior at runtime.
>> Check out the full proposal here:
>> Thank you,
>> swift-evolution mailing list
>> swift-evolution at swift.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the swift-evolution