therealbluepandabear
04/09/2021, 5:40 AMval notificationHelper: INotificationHelper = NotificationHelper(this)
val notificationHelperTwo = NotificationHelper(this)
ephemient
04/09/2021, 5:45 AMtherealbluepandabear
04/09/2021, 5:46 AMtherealbluepandabear
04/09/2021, 5:46 AMephemient
04/09/2021, 5:47 AMephemient
04/09/2021, 5:48 AMtherealbluepandabear
04/09/2021, 5:48 AMtherealbluepandabear
04/09/2021, 5:49 AMephemient
04/09/2021, 5:50 AMvar foo: Foo? = null
can't be written without a type annotation, for example)therealbluepandabear
04/09/2021, 5:51 AMephemient
04/09/2021, 6:15 AMephemient
04/09/2021, 6:15 AMephemient
04/09/2021, 6:18 AMconst val foo = "foo"
)
- anything non-public (such as local types) will depend on your taste. most Kotlin code I see leaves off type hints. sometimes you may want to add it to reduce confusion
- there are a few rare cases in which the code is not correct without a type hinttherealbluepandabear
04/09/2021, 7:27 AMYoussef Shoaib [MOD]
04/09/2021, 8:58 AMYoussef Shoaib [MOD]
04/09/2021, 8:58 AMYoussef Shoaib [MOD]
04/09/2021, 8:59 AMOrhan Tozan
04/09/2021, 9:25 AMShawn
04/09/2021, 5:02 PMtherealbluepandabear
04/09/2021, 9:03 PMShawn
04/09/2021, 9:13 PMShawn
04/09/2021, 9:13 PMtherealbluepandabear
04/09/2021, 9:13 PM