Yeah, avoiding top level properties is something that most people coming from java or some similar language do.
As long as they are val
and private
there is no problem. They only become problematic if they are mutable and public. Then you run into the usual issues with global state.
3 Likes