4 ms·
> Also using the moc is a bit similar to using complex preprocessor-macr-ridden c code, which to me is an antipattern. We sort of agree. gobject is a "kill it
by blattimwind 7y ago
> Also using the moc is a bit similar to using complex preprocessor-macr-ridden c code, which to me is an antipattern.
We sort of agree. gobject is a "kill it with fire" kind of mess, moc is not exactly the pinnacle of elegance either (but does more than glib gives you and somehow manages to be less weird than glib's macro jungle). The basic fact is that moc works around C++ not being able to provide this kind of functionality; so either you take some inconvenience (gtk, verdigris) or use an external tool (moc). moc doesn't usually give any trouble beyond being somewhat slow, so that seems like an acceptable deal for almost any situations you might consider using Qt in.