[Interest] Are slots even needed these days?

André Pönitz apoenitz at t-online.de
Wed Mar 16 22:37:50 CET 2016


On Wed, Mar 16, 2016 at 02:31:33PM +0000, Gian Maxera wrote:
> > I can connect to Foo::bar either way. If I don't intend to ever use
> > the old-style connect syntax, is there a reason to have "public
> > slots:" anymore?
> 
> One reason that for me it’s fundamental: Readability of your code !!!

It doesn't make the code more readable then a comment

   // This is a slot !!!
   void foo();

and since it's not verifiable by the compiler it has
the same effect.

Andre'



More information about the Interest mailing list