Extension functions in objects were recently discu...
# announcements
Extension functions in objects were recently discussed here and now there's the first question on SO: http://stackoverflow.com/questions/41460049/extension-method-for-utility-class-from-external-library What's the consensus on extension functions in objects? Until recently, I wasn't even aware that they are possible to call without tricks like
with (PluginExtensions) {}
. I seem them as possibility for scoping extensions but then again, what's the benefit compared to putting them in separate files? In both cases you have to import them, except top-level extensions are suggested by autocompletion.