|
|
|
|
|
by hermitdev
2724 days ago
|
|
> I don't disagree that I haven't created any types, but to someone who doesn't see the declaration of meter or centimeter, it can be difficult to know that. We definitely agree here. Better would be to use a library such as Boost Units, rather than naked aliases. void* is definitely problematic, and I kill it every chance I get, but it persists in a lot of code due to C libs and unfortunate legacy dependencies. |
|
> Better would be to use a library such as Boost Units, rather than naked aliases.
Completely agreed.
> void* is definitely problematic, and I kill it every chance I get, but it persists in a lot of code due to C libs and unfortunate legacy dependencies.
I've not seen it (thankfully) in anything other than actual C code or graphics code, but whenever I do see it, I make a mental note of "here be dragons" and make sure to take extra care around there... It's not ideal but it's life..