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

Ville Voutilainen ville.voutilainen at gmail.com
Wed Feb 26 14:05:46 CET 2020


On Wed, 26 Feb 2020 at 14:44, Tor Arne Vestbø <Tor.arne.Vestbo at qt.io> wrote:

> > We’re neither enforcing the use of ‘emit’ currently. And I honestly find most of the alternatives to be worse than no annotation at all.
>
> I agree.
>
> As others have argued, a signal is not special, in the sense that any function can do anything, including emitting signals, so annotating it doesn’t seem critical, as we apparently are fine without in all other cases.

Yep, this part of it destroys the "annotate the yield operations" for
me; if I call another function that then signals,
I don't see the annotation, so the warm and fuzzy feeling of safety
requires a very particular programming style.


More information about the Development mailing list