DEV Community

Discussion on: Gang of Four Patterns in Kotlin

Collapse
 
lovis profile image
Lovis

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 :-)

Collapse
 
qwertukg profile image
Daniil Rakhmatulin

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