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.)

Reply via email to