[Development] A modest proposal: disable lower-case keywords (emit, foreach, forever, signals, slots) by default

Benjamin TERRIER b.terrier at gmail.com
Fri Feb 28 10:45:49 CET 2020


On Fri, 28 Feb 2020 at 10:35, Edward Welbourne <edward.welbourne at qt.io>
wrote:

>
>
> Indeed; most of the case for "emit" can be answered by a sensible naming
> convention.
>

One case where it does not work is in connections.

emit somethingWasDone() and emitSomethingWasDone() look similar.

But the emit in  connect(obj, &MyClass::emitSomethingWasDone, ...) looks a
bit superfluous to me.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/development/attachments/20200228/2ee7034e/attachment-0001.html>


More information about the Development mailing list