but yeah <@U0JRS2YUB>, I was hoping to push kotlin...
# announcements
g
but yeah @sreich, I was hoping to push kotlin to have what I'm going to call default null objects, something like what Objective-C has for the null type, such that i could have some fancy syntax to create a null instance of something (with whatever default implementation the language authors deem necessary, be it throwing exceptions, errors, returning nulls, defaults, recursive null objects, whatever).
Copy code
val aStupidInstance = NullInstance() as AStupidInterface;
val usefulInstance = object: AStupidInterface by aStupidInstance {
  override fun usefulMethod(intersting: Interesting): AnotherInteresting {
    //...
  }
}
worth noting, assuming performance isn't an issue, this becomes fairly trivial to do given the right semantics of
dynamic
, if that ever makes it into the JVM side kotlin compiler.