3 ms·
I suspect that — late at night, tucked in for a slumber after toiling all day in the processor — injected dependencies dream they are first class functions, the
by pohl 12y ago
I suspect that — late at night, tucked in for a slumber after toiling all day in the processor — injected dependencies dream they are first class functions, their service interfaces dream they are function signatures, and the objects into which they are injected dream of being curried functions to which some dependency arguments have already been partially applied.
- arielby 12y agoExcept that an interface's signature is more complicated than a single function.
- yebyen 12y ago> their service interfaces dream they are function signatures In Go, at least, an interface is nothing more than a collection of function signatures (with the type Foo interface{...} wrapped around them, they become the interface known as Foo.)