Hacker News new | ask | show | jobs
by wycats 5421 days ago
In general, you can use explicit argument passing or closing over what you need. I tend to use closures to get information from my current scope to a callback, although that doesn't always work in heavily object-oriented code.