re: Gang of Four Patterns in Kotlin VIEW POST

re: Really good post. short and clean - like as a Kotlin style ;) But i think builder could be opened more. Your example is good, but i mean the using ...

thank you!

yeah, those type save builders / DSLs are nice. But they are a topic on their own, and and wanted to keep it "basic" :-)

I would not consider calcExecTime a builder, since it does not create anything.

btw a method like this already exists in the standard lib - its called measureTimeMillis :-)


actually yes, its build nothing) sorry for disorientation, but I want to show many other features, who can be provided by lambda with receiver.

Code of Conduct Report abuse