paulk-asert commented on PR #1839: URL: https://github.com/apache/groovy/pull/1839#issuecomment-1368542797
We picked the name `findResult` many years ago. Naming is hard. I wasn't going to open the naming can of worms myself. Just plugging that hole in the existing named functions. But on naming, I think the idea was that if you got a result (being "non-null") that was a match whereas what was regarded as more common case of wanting Groovy truth was find/findAll. If we hadn't already locked in the find/findAll naming many years earlier again, we might not have chosen findResult/findResults for the non-null case. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
