3 ms·
That's a good idea, but you shouldn't assume too much about why people are making mistakes, I've been working with and on Twisted since 2001, so not a JS kiddy
by itamarst 10y ago
That's a good idea, but you shouldn't assume too much about why people are making mistakes, I've been working with and on Twisted since 2001, so not a JS kiddy :) I made this mistake fair and square even though I knew better.
Which is why I like having a tool that'll catch it for me.
My typical approach is `lambda x, y=y: f(x, y)`. Inline functions are much more readable, is the thing. But I can see the argument for this coding style, yes.
- m_mueller 10y agoSorry, didn't want to attack you personally with the 'kiddy' comment. I think my proposed style mashes well with yours though.