arnis71
10/05/2017, 8:42 AMScope()
instead of Scope.root()
. This way clazz property wont be nullable and have a default value of Scope::class
. So the class would look like this data class Scope(val clazz: KClass<*> = Scope::class)
. Not insanely necessary but i guess it is a little bit easier and fits well with Kotlin paradigm. What do you think?