[Development] A modest proposal: disable lower-case keywords (emit, foreach, forever, signals, slots) by default
Ville Voutilainen
ville.voutilainen at gmail.com
Fri Feb 21 13:41:35 CET 2020
On Fri, 21 Feb 2020 at 14:30, Mitch Curtis <mitch.curtis at qt.io> wrote:
> > > without any annotation is not what we want. We'd miss vital information
> > and reduce readability.
> > Can you please explain what that vital information is?
> How can you tell if it's a signal being emitted or just a function call without the emit syntax? With the emit syntax before the signal emission, it's immediately obvious that it's a signal. Not all signals follow the *Changed() naming convention, nor should they, so it becomes even less obvious in those cases.
Why do I need to know that it's a signal being emitted? How is that
"vital information"? I could just as well
invoke any other callback, but I find myself not exactly yearning for
being able to write
callback somethingHappened();
More information about the Development
mailing list