<Language feature for scoped restrictions?> I need...
# forum
r
Language feature for scoped restrictions? I need a way to restrict what things I am able to do in specific scopes. For example, I need to restrict usage of the java.io or kotlin.io packages. I am developing my own frameworks for working with files, which may use those packages internally. but there is nothing stopping me from using those packages in places where I don’t want to. One possibility is that I can write function in a common module (no access to jvm). But this seems like it accomplishes my goal only as a side effect, and...