3 ms·
"A good example is setting up state for integration tests; I'm not going to re-use any functions I create for that." And if it turns out I'm wrong about that,
by jerf 4y ago
"A good example is setting up state for integration tests; I'm not going to re-use any functions I create for that."
And if it turns out I'm wrong about that, the braces provide a very nice, guaranteed cutting point in the future that anyone can understand without having to load all the context of the function.
This isn't the sort of thing I want splattered all over a code base, but it is a nice niche tool.