On Fri, Feb 21, 2020 at 12:49:02PM +0100, Julien Cugnière wrote:
For example, a normal function call could end up emiting a signal, and
as such, any function could be as dangerous as a signal.
indeed, the recursivity of the issue utterly destroys the "safety"
argument.
however, i still like annotating the "emissions" themselves, simply to
make it obvious that this is only a "notification" and as such not
expected to directly affect the current scope (yes, i know that signals
are sometimes abused for implementing callbacks - shame on them). kinda
the opposite of the safety argument, really.
The other problem with emit, is that it's not required. So its absence
doesn't mean a signal is not being emitted.
that can be enforced with tooling, though.
_______________________________________________
Development mailing list
Development@qt-project.org
https://lists.qt-project.org/listinfo/development