News for hackers. Stuff that matters.
Re:Rust and C++ Interoperability in Chrome by asveikau on Thursday August 20, 2020 @02:04AM (#24220367)
Yes, I understand the point. But to your comment in a literal sense, if I were doing code review I would probably suggest using M_PI. Which happens to be a macro.

Which actually highlights that many things you want to use for practical purposes are C rather than C++, predate innovations such as const or namespaces, etc. It's possible and common to understand the downsides and still reach for the macro.

There are no comments on this comment yet.