Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> A major purpose of DI is that dependencies should be declared in the signature

Yes, and a coeffect system would cause dependencies on dynamic variables to be declared statically, even if they're provided by "the environment" at runtime.

Tomas Petricek's PhD project page is a good introduction to coeffect systems, and it illustrates dynamic variables as an example. http://tomasp.net/coeffects/



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: