2 ms·
In the opposite direction, the main thing I miss in kotlin is Java's package-private. Kotlin's internal is not really a replacement since it operates at the mod
by guelo 9y ago
In the opposite direction, the main thing I miss in kotlin is Java's package-private. Kotlin's internal is not really a replacement since it operates at the module level which makes it more useful for library developers. Kotlin's strict rules about not allowing tighter scope in the constructor of a looser scoped class breaks my Dependency Injection pattern of injecting package-private classes into the one public class in a package. Basically everything in kotlin ends up being public.