Join Slack
Powered by
Is it always possible to convert extensions to mem...
# codereview
b
breandan
01/11/2019, 11:38 PM
Is it always possible to convert extensions to members?
https://stackoverflow.com/questions/54155416/how-to-convert-an-extension-into-a-member
🚫 1
breandan
01/12/2019, 7:43 PM
@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
Open in Slack
Previous
Next