Closed
Description
When I introduce ZIO to my colleagues, who are new to both Scala and ZIO, they find it hard to understand the ZLayer
concept and the R
parameter in ZIO, even after they understand IO[E, A]
.
One feedback I get from them is that it may be better to rename ZLayer
to ZDependency
, as "dependency" is a more familiar concept. They can recall their earlier experience using Spring and other dependency injection frameworks. And ZDependency would be better aligned with the inject
methods(as in "inject dependencies").
An alternative name to ZDependency, as suggested by @jdegoes is ZConstructor
.
This issue is to discuss what name we can rename ZLayer to, and hope we can make it for the ZIO 2.0.
Any other thoughts?
Metadata
Metadata
Assignees
Labels
No labels