Kotlin Code Smell 16 - Instance Type Checking for Polymorphism
TL;DR: Trust your collaborators. Don't check who they are. Ask them to do it instead.
Problems
Coupling: Objects are tightly coupled due to instance type checking.
Metamodel interference: The use of instance type checking interferes with the metam...
yonatankarp.com2 min read