[Interest] Are slots even needed these days?

Till Oliver Knoll till.oliver.knoll at gmail.com
Thu Mar 17 08:37:36 CET 2016



> Am 16.03.2016 um 23:41 schrieb Bob Hood <bhood2 at comcast.net>:
> 
>> On 3/16/2016 3:37 PM, André Pönitz wrote:
>>> 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();
> 
> I would argument that it does when you have legions of people out there already conditioned to this:
> 
>    ...
>    public slots:
>        void  bar();
>        void  foo();
>   

This.

:)

Cheers,
  Oliver
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20160317/8bb3d08c/attachment.html>


More information about the Interest mailing list