Skip to content

C++ is great, but mass renaming is a quite awkward. #25

@skull-squadron

Description

@skull-squadron

I love C++11 meta awesome as much as the next guy, but mass renaming, especially for existing apps, is painful configuration over convention.

I audited the class, it's not really doing anything C++ like except hiding some private instance vars that get passed around. And there's only one public method, so it seems kind of goofy to use classes. I'll demonstrate a C++ -> C trick of how to hide private instance data w/ public in 1 malloc.

Having it as a C99 QR library is also useful.

Legacy code-style transition:

  1. Keep the existing classes that proxy to C equivalents (no mm -> m required).
  2. Simple #ifdef to choose C or C++ version in the one place w/ new and delete.
  3. Optional deprecations notices later.

--excuses for not using this awesome library! :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions