workflow-kotlin icon indicating copy to clipboard operation
workflow-kotlin copied to clipboard

Kotlin samples should experiment with DI via PropsT

Open rjrjr opened this issue 6 years ago • 1 comments
trafficstars

@zach-klippenstein @bencochran and I just independently had the same thought: what if the DI-esque Kotlin samples were changed s.t. all workflows were object, and all injection happened via Props, using the factory pattern where necessary.

Could be perfectly pleasant, and much easier guidance to give ("Workflows are always stateless objects"). Also very consistent with Swift.

rjrjr avatar Oct 10 '19 20:10 rjrjr

Also very consistent with Swift.

conswiftent

Happy friday.

zach-klippenstein avatar Oct 11 '19 16:10 zach-klippenstein