On Thu, Mar 17, 2016 at 08:35:39AM +0100, Till Oliver Knoll wrote: > > Am 16.03.2016 um 22:37 schrieb André Pönitz <apoen...@t-online.de>: > > > > 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(); > > Extend your example to a dozen or so slots and you'd quickly agree > that > > private slots: void foo(); void bar(); void baz(); ... > > is much more readable, as compared to, say, repeating your comment
I thought the comment was silly enough to make clear that I don't think it has any merits at all, pretty much as marking something *unnecesarily* as 'slot:' hasn't. I even copied all the exclamation marks !!!1eleven. Andre' _______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest