re: Gang of Four Patterns in Kotlin VIEW POST

VIEW PARENT COMMENT VIEW FULL DISCUSSION
 

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