Last active
February 3, 2017 12:56
-
-
Save pawegio/30e4dc39179f148fd507b4f2f67aecc1 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
inline val <reified T> T.tag | |
get() = T::class.simpleName | |
fun Any.log(msg: String) = Log.d(tag, msg) |
You're right. I updated gist to actually use reified
type.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Are you using
reified
just to show that now, since you caninline
properties, you can usereified
in those situations?I'm just wondering if there's any advantage when comparing to this simpler approach: