Open cdthompson opened 6 years ago
At some point, chaining objects with the . operator becomes dangerous and prone to runtime errors due to an intermedia object being invalid.
.
It'd be nice to warn against some threshold of chained operations, such as:
if m.object.child.child.child.field = true ...
What should the threshold for chaining calls be?
At some point, chaining objects with the
.
operator becomes dangerous and prone to runtime errors due to an intermedia object being invalid.It'd be nice to warn against some threshold of chained operations, such as: