3 ms·
Properly designed C++ library using templates and macros can lead to surprisingly terse application code - not your standard STL/Boost template syntax mess. I'v
by dirtyaura 12y ago
Properly designed C++ library using templates and macros can lead to surprisingly terse application code - not your standard STL/Boost template syntax mess. I've seen it in one of our gaming frameworks, and in e.g. Google's C++ unit testing framework.
However developing the library code itself requires some serious C++ template fu and the abstraction leaks to the library user in the form of complex error messages.
Strategically used, like in this case, it certainly leads more succint and readable code than pure Objective-C alone.