Ofir Bar
02/25/2020, 12:38 PMwhen
expression using something similar to it
?
In the code below “`it`” gets an error (Unresolved reference: it
)
when(mCurrentUserType){
UserType.HUMAN -> {
setViewForUserType(currentUser, it)
}
UserType.ANIMAL -> {
setViewForUserType(currentUser, it)
}
}
dawidhyzy
02/25/2020, 1:06 PMmCurrentUserType
dawidhyzy
02/25/2020, 1:06 PMOfir Bar
02/25/2020, 1:17 PMit
in this context? (Just to better understand my code)
As for hungarian notation, why?dawidhyzy
02/25/2020, 1:24 PMit
in contextdawidhyzy
02/25/2020, 1:25 PMwhen (val response = executeRequest()) {
is Success -> response.body
is HttpError -> throw HttpException(response.status)
}
dawidhyzy
02/25/2020, 1:25 PMdawidhyzy
02/25/2020, 1:26 PMdawidhyzy
02/25/2020, 1:28 PMOfir Bar
02/25/2020, 1:30 PMdawidhyzy
02/25/2020, 1:30 PMcodeslubber
02/27/2020, 2:55 PMdawidhyzy
02/28/2020, 7:44 AMm
prefix for properties.Naveenkumar R
03/02/2020, 1:32 AMmCurrentUserType
is following hungarian notation.