mplain
05/31/2020, 10:50 AM.takeIf {}?.let {} ?: else
araqnid
05/31/2020, 10:51 AMmplain
05/31/2020, 10:54 AMKroppeb
05/31/2020, 10:54 AMKroppeb
05/31/2020, 10:56 AMn?: throw Exception
n = null
or maybe more liked be most people
if(n != null)
throw Exception
n = null
araqnid
05/31/2020, 11:03 AMcheck(n != null) { "reason...." }
n = null
especially if this is the full body of a methodmplain
05/31/2020, 11:04 AMMatteo Mirk
06/01/2020, 7:38 AMmplain
06/01/2020, 7:42 AMmplain
06/01/2020, 7:42 AMMatteo Mirk
06/01/2020, 7:52 AM