--
You received this message because you are subscribed to the Google Groups "cxx" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cxx+uns...@chromium.org.
To post to this group, send email to c...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/cxx/CABiGVV8_1G5ihioZ-mNQFWWE%3DQ_Y8Sxjd_sDfkSSxNppEovusw%40mail.gmail.com.
+1 but I would request that we accept number literal separators at the same time. Readability of binary values is highly improved with those.
--
You received this message because you are subscribed to the Google Groups "cxx" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cxx+uns...@chromium.org.
To post to this group, send email to c...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/cxx/CACWgwAad%3DAb3eQA0V0p5DEaiCqesuQAGiUERXpq3T_TkJHPYhQ%40mail.gmail.com.
On the other hand, in your sample CL I see separators as both incredibly useful and if needed, obvious as to position:image.red_mask = 0b1111100000000000;image.green_mask = 0b0000011111100000;image.blue_mask = 0b0000000000011111;vsimage.red_mask = 0b11111'000000'00000;image.green_mask = 0b00000'111111'00000;image.blue_mask = 0b00000'000000'11111;Why restrict yourself to the byte/nybble? For something like this, actually splitting the 16 bits as 5'6'5 makes it super clear what's going on. I would say "use where appropriate for clarity" and leave it to whomever actually is writing binary constants to use them as needed/if needed.
--
You received this message because you are subscribed to the Google Groups "cxx" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cxx+uns...@chromium.org.
To post to this group, send email to c...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/cxx/CAAHOzFAKzGY-0yGTWRkW%3DnNTphJ1zNeLiq6bwQxg0-GREyBMXA%40mail.gmail.com.
I thought about arguing for digit separators, but worried that they could increase the risk of editor incompatibility.
It's also not totally clear where one puts the separator in a binary literal (every byte? every nybble?).
--
You received this message because you are subscribed to the Google Groups "cxx" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cxx+uns...@chromium.org.
To post to this group, send email to c...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/cxx/CAAHOzFBW2pY38xBXXyb0mBNF5VDrj_NDarMgzYFywt5-w_exbw%40mail.gmail.com.