Hacker News new | ask | show | jobs
by microflash 805 days ago
It is just a matter of how flexibility you want to expose through your API. Sometimes a rigid and stricter API is the right choice where you want the API itself as the guardrail against non-standard patterns.
1 comments

Scopes and closures Give you guard rails and don’t require gluing functions to state unnecessary.