Optional function parameters

Unfortunately, it will be compiled to invocation of function class with empty implementation. We are planning to implement function inlining later, which will compile your code in more effective way.

Function type surely can be nullable, here is an example:

``

fun foo(callback: (() -> Unit)? = null) { … }