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

Oswald Buddenhagen oswald.buddenhagen at gmx.de
Fri Feb 21 13:40:49 CET 2020


On Fri, Feb 21, 2020 at 08:23:51AM +0000, Kai Koehne wrote:
>Another alternative is to actually use C++ attributes for this:
>
>  [[qt::emit]] somethingChanged();
>
that's a terrible idea, because it's visually noisy (and correspondingly 
bothersome to type).

if anything, i'd go for

#define qEmit


More information about the Development mailing list