[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:21:40 CET 2020


On Fri, 21 Feb 2020 at 14:00, Allan Sandfeld Jensen <kde at carewolf.com> wrote:
> Hmm.. Or perhaps:
>
> #define qEmit(x) x
> or
> #define qEmit(x) do { x; } while (false)
> to handle the syntactic edge cases.

Well, if we're re-entertaining a function-like wrapper, we could just
as well avoid
getting back to the not-so-wonderful world of macros, and do
template <class T> T&& qEmit(T&& t) {return std::forward<T>(t);}


More information about the Development mailing list