News for hackers. Stuff that matters.
Re:Android KTX: Kotlin Development for Android by pennaMan on Tuesday February 06, 2018 @07:15AM (#16315756)
Extension functions are syntax sugar for static methods that receive the class instance as this. They do not access private members.

Also, you need to specifically import the namespace of the extension function in order to use it, making it very clear to the reader of what is going on. It is not some hidden IDE magic, it's built into the core language.

Re:Android KTX: Kotlin Development for Android by rubber_duck on Thursday February 08, 2018 @05:51PM (#16336291)
I never said otherwise.

I said it was misleading syntax sugar because it implies that static functions defined in any namespace (extension methods) are the same as methods - which have access to internal members and are defined within class hierarchy.

If you know something is an extension method then you know it's just syntax sugar, but you can't determine that just by looking at the code.