https://kotlinlang.org logo
#http4k
Title
d

dave

10/14/2020, 9:16 PM
@Razvan For all intents and purposes they are the same. I’m a bit of a neat freak, so it there are multiple different overloaded functions with the same name or private helper methods/state I tend towards the object/invoke. But it’s just stylistic really. The main thing to note is that by avoiding exposing “classes” rather than interfaces , you both neaten up available names in the namespace and give flexibility if you want to change the underlying implementation later.