Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
None
-
None
-
None
Description
The use(category)
{closure}construct doesn't seem to be returning any useful value. It would be useful if it propagated the value returned by its closure. This would a more natural "use" of categories in cases like:
def function() {
return use(HelperFunctions)
}
Attachments
Attachments
Issue Links
- duplicates
-
GROOVY-1287 use(category, closure) should return the closures return value.
- Closed
- relates to
-
GROOVY-2474 Change all withXXX methods to return the value returned by their closure instead of void
- Closed