3 ms·
Why not just use braces? Take all your 'try' keywords out and the scope limitations are the same. Unless you're relying on the try {} to avoid bombing when the
by Torn 15y ago
Why not just use braces? Take all your 'try' keywords out and the scope limitations are the same.
Unless you're relying on the try {} to avoid bombing when there are assertion errors? That just seems a bad way of doing unit testing.
- vorg 15y agoYou can do that in Java but not in Groovy unless you write tr:{ //... }