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. A type check for "callable with no arguments and mixed/unspecified return" would be a simple special case of the often-discussed "callable with specified signature"; but I don't think that's what's proposed here. Regards, Rowan Tommins [IMSoP]
