> Modern compilers for statically typed languages are really good at inferring types of various identifiers based on multiple hints in a deterministic way (see Kotlin, Swift etc)
I think it’s importatnt to mention that in Swift this lookup has exponential behavior, and can time out if the expression is too complex.