Re:Android KTX: Kotlin Development for Android
by TheAceOfHearts on Monday February 05, 2018 @04:09PM
(#16312207)
I was about to post the same thing. The first one makes way more sense to me.
[ Parent
| on HN ]
Re:Android KTX: Kotlin Development for Android
by BoorishBears on Tuesday February 06, 2018 @12:36AM
(#16314643)
It’s weird watching old things become new again.
I know C# didn’t do it first, but I’m only old enough to remember C# doing it... and watching people learn the hard way that extension methods pollute the global namespace very easily.
This would be a textbook example of what not to use extension methods for, adding a very specialized extension to a basic type where a simple static utility method would suffice.