4 ms·
> One more way to bypass this requirement is to add a private static method This doesn’t work if it requires multiple arguments to be generated with common cod
by layer8 4y ago
> One more way to bypass this requirement is to add a private static method
This doesn’t work if it requires multiple arguments to be generated with common code, unless you’re okay with effectively running that common code twice, which in turn is problematic when it has side-effects (like logging). See https://news.ycombinator.com/item?id=34482908 https://news.ycombinator.com/item?id=34482908 for an alternative way of solving this.