3 ms·
GObject doesn’t abuse the preprocessor. It suggests to #define type-guard parts of the standard boilerplate (purely in spirit of C), but doesn’t require you to
by wruza 4y ago
GObject doesn’t abuse the preprocessor. It suggests to #define type-guard parts of the standard boilerplate (purely in spirit of C), but doesn’t require you to do so. Everything else is just C.
Also, being an object system, not only a type system, it is more advanced than C++ in parts of properties and signals. Of course that requires some cooking. For example, Qt had to resort to a custom pre-compiler for that.
That said, I believe it loses quickly in ergonomics to plain Objective C, which is best “practical C + objects” flavor ever done, imo.
- pjmlp 4y agoDepending on how much one likes to type @.