what's different among "use" "by" "as"?
# announcements
i
what's different among "use" "by" "as"?
n
they're...completely different keywords. "use" is sugar for try-with-resources, "by" is for delegates, "as" is for casts
✔️ 2
e
to be a bit pedantic,
use
isn't even a keyword. it's an extension function in kotlin-stdlib-jdk7 and not on any other platform
☝️ 1