re: Gang of Four Patterns in Kotlin VIEW POST

TOP OF THREAD FULL DISCUSSION
re: Great post, I just have one note: for what regards the Decorator example, you're using extension methods, which is a very desirable feature of Kotl...
 

Hey Mario, first of all: thanks for your kind words!
It's definitely true that function composition would be the better solution here. I used extensions because it's "pure" Kotlin. I didn't want to copy your examples and solutions, either. Thought that would be boring :-)

code of conduct - report abuse