Thanks, I think I understand a bit more now :)

Sure, you can convert from ZIO env to functions and back either by hand or with macro. And you can use theprovidePart macro to eliminate a single dependency.

However, the ModuleDef, macros etc. seem like quite heavy and brittle machinery for such a basic and common task as wiring the dependency graph. But for sure there are places where this might be useful.

--

--

Software engineer, Functional Programming and Scala enthusiast, SoftwareMill co-founder

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Adam Warski

Adam Warski

Software engineer, Functional Programming and Scala enthusiast, SoftwareMill co-founder

More from Medium

IPPAM Senate Appreciation Breakfast

Men and women are finally reconciled by the understanding of the human condition

Woman and man holding hands in front of a setting sun

When Faith Is Critical

The graphic contains four, empty speech bubbles in the background. In the foreground is text framed by a white square that reads, “#31DaysIBPOC.”  Underneath this are two lines that state, “Celebrating the teacher voices of Indigenous, Black, & People of Color this May!” The bottom of the graphic lists the following information, “Hosted by @TchKimPossible @triciaebarvia.”

Listening to Partners: Co-Impact on Systems Change