What is the recommendation to use/not use "this" i...
# announcements
m
What is the recommendation to use/not use "this" in an extention function, because in many cases it could be ommited? I read the Kotlin style guide and didn't find any information about it.
s
IMO, if you find it more readable to prepend with
this.
, then do it. I don't think there are any hard rules on it. simple smile
e
Same here. I usually skip the
this
except for array access which look better like
this[0]
.