bob
12/04/2017, 7:39 AMif?(state?.isValid)
instead of if(state?.isValid == true)
So when we have an if-statement of an nullable value we don’t have to explicitly declare the == true
all the time.gildor
12/04/2017, 8:03 AM?
is null safety operator, it’s not clear how if?
should work. I think it’s too implicit and dirty syntax imho. Also, what if I want to have if(state?.isValid == false)
condition?Andreas Sinz
12/04/2017, 8:33 AMif?!(state?.isVaild)
🧌bob
12/04/2017, 9:00 AMgildor
12/04/2017, 9:03 AMval StateHolder.isValidState get() = state?.isValid == true