-
-
Notifications
You must be signed in to change notification settings - Fork 249
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
<ios> and <iomanip> flags #61
Comments
Implementation idea:
|
Thank you for your feedback! I see how this could be useful and I kind of like the idea. The issue I see is that this could lead to feature creep. For now, this header has a very simple "API": the Also, I would like to avoid adding more names to the global namespace. If at all, it should probably be |
I agree to not polluting the global namespace. But to keep consistency, maybe we should also move the There are lots of flag from One problem is that
This code effectively print I suppose that debugging is consistent enough on a project lifetime so we can do the following (it is not a naming proposition):
We keep the fast use of |
I didn't know that we could use I started an initial implementation here: #68 |
Congrats! I'll take a deep look in a day or two. Promise I'll feedback! |
A macro is a preprocessor! That mean it gets translated in pre-processing which happen before compilation 😋 |
I was afraid that the preprocessor (because it does not know anything about the syntax) would maybe affect a string like |
I left a review! Great work :) |
Hello!
This project is very great, thank you!
I often need to print values as hexadecimal, and bonus point as binary. It would be nice if this library support it.
Maybe
dbg(std::hex, number)
? This does break the implicit rull that arguments are all "dbged" but it could work.Maybe
dbg::dbg(dbg::hex(number))
?If you do not have time, I can PR this feature if you are ok on the concept and the way of doing it!
EDIT: maybe I missed the already-existing feature to print as hexadecimal!
The text was updated successfully, but these errors were encountered: