Y
Hacker News
new
|
ask
|
show
|
jobs
by
mikeschinkel
505 days ago
Interfaces are one way to inject stubs, and a good way, but not the only way. You can also use function values as callbacks.