Programming Languages, Kotlin, Software Development, Computer Science, Compilers.
is explicit. Any function that calls sayHi needs to specify UserAccount and Logger as context for itself in order to forward that context to sayHi. The compiler isn’t smart enough to do that itself. As an example, this won’t work: Here, processOnAppStartup would need to include in its context