Is that not already covered by the call() - method? I mean the option to declare a method called `Object call(args)ยด Best Regards Angelo
--- Angelo Schneider angelo.schnei...@oomentor.de +49 172 9873893 > Am 29.04.2021 um 02:47 schrieb Christopher Smith <chrylis+gro...@gmail.com>: > > It would be convenient to be able to use the convention of "use > parentheses on a function-like object" with functional interfaces; for > example, if a variable is declared as type Function, to have > `myVar(3)` run `myVar.apply(3)`. Is there any chance this would be > practical, or would its semantics be limited sufficiently by the > default-dynamic nature of Groovy to not add value? > > (I have in mind Groovy's tendency to do runtime switcheroos with > anything that implements Map as a counterexample, but that may be > beside the point.)