https://kotlinlang.org logo
#codereview
Title
# codereview
b

breandan

01/11/2019, 11:38 PM
🚫 1
@hudsonb Can you clarify? What makes extensions "special" in the sense that they can dispatch based on type information that is only available at compile time?
h

hudsonb

01/12/2019, 7:49 PM
Yeah that's the #1 reason when generics are involved IMHO. There is a good discussion on it here: https://stackoverflow.com/questions/35317940/when-should-one-prefer-kotlin-extension-functions
👍 1
b

breandan

01/12/2019, 8:43 PM
Thank you, that’s a great thread
2 Views