https://kotlinlang.org logo
#anko
Title
# anko
a

adeln

12/25/2017, 3:20 PM
hey folks, what do you think about https://github.com/Kotlin/anko/issues/530 ?
💯 4
r

russhwolf

12/25/2017, 9:26 PM
That gives you code that reads nicely, but typealiases don't give you any compile-time type-safety the way annotations can.
a

adeln

12/26/2017, 8:46 AM
yes, but I think
typealias
is still lesser evil
@russhwolf moreover, support annotations are still not picked up for kotlin code by CLI lint (AFAIK)
m

miha-x64

01/07/2018, 11:00 PM
typealias DrawableRes = @DrawableRes Int
would be more interesting (but will not work).
2 Views