Hacker News new | ask | show | jobs
by waynesonfire 1011 days ago
A common pattern that I use is to pass a behaviour module as a function argument to support dynamic behavior or dependency injection. Last I looked, I couldn't use dialyzer to describe the behaviour that a function accepts.