On Monday 30 March 2026 10:37:49 (+02:00), Rowan Tommins [IMSoP] wrote:
> On 30 March 2026 08:58:03 BST, Rob Landers <[email protected]> wrote:
> >I'd prefer if the interface forced an empty argument set. You can add
arguments so long as they're optional. But generally speaking, there is no
need for arguments on an invokable class -- that is what constructors and
properties are for.
>
> An invokable class can be used for all the same things as any other
callable - I've seen them used for event handlers, middleware, comparison
for sorting, and so on.
When you spotted those, were they also with such a generic invocable
interface as in this idea in their interface hierarchy?