gabrielfv
08/14/2017, 9:48 PMfun foo(bar: Int?) can be called like foo(), instead of having to write fun foo(bar: Int? = null). I see people comonly reading the ? as sort of "opitional" in this context, and I don't see the point of calling foo(null), though makes some sense when
val a: Int? = mayReturnInt()
foo(a)
Is a common scenariogildor
08/15/2017, 1:28 AMfun foo(bar: Int = 0)yole
08/15/2017, 6:26 AMgabrielfv
08/15/2017, 8:01 PM