hi, which solution is better? use nullable lambda ...
# announcements
p
hi, which solution is better? use nullable lambda or pass empty lambda as default parameter? would kotlin optimize somehow emty lambda ? or create new instance that do nothing?
Copy code
class Test1(val action: () -> Unit = {})