Hacker News new | past | comments | ask | show | jobs | submit login

This feels like too much of a "ricer" feature, at least the way it's implemented.

Instead, you want:

* A pretty-printer library (possibly single-header) * A function for obtaining the typename; see:

    https://stackoverflow.com/q/35941045/1593077
    https://stackoverflow.com/a/56766138/1593077

  for a constexpr approach.
and it won't hurt to have:

* A logging library with log levels (so that you don't necessarily need to recompile to enable these outputs) * A stack trace printing library

When you have that, such a macro becomes nearly trivial. Oh, yeah, and - drop the silly ANSI coloring.




I honestly prefer the ANSI colouring. It makes it very easy to quickly differentiate different parts of the line and zone in on what is needed.


He would be a lot more receptive if you didn't use terms like "ricer" and seemingly demanding changes rather than recommending them.


What’s a ricer?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: