Tony V E
2018-11-01 05:33:17 UTC
I see the uuid proposal (wg21.link/p0959) is back, and might get looked at
next week in San Diego.
Questions:
0. will the author be present? (If not, would they like me to present it?)
1. The main question I still have is this idea of whether the internal byte
order is fixed, or implementation defined.
There are begin/end iterators, and they mention impl defined order, but
then there is also as_bytes, returning a span...
But that span is almost useless if the byte order is impl-defined, so I'm
confused.
The difference between fixed order and impl defined order comes down to, I
think, being able to use int compares (or even a 128bit int compare) vs
memcmp() when doing comparisons (for ordering at least - you could do
128bit == regardless of byte order). Is that the main difference?
(And faster compare comes at the cost of more expensive iteration, I think.)
2. why parse both "xxx...." and "{ xxx..... }" (and are spaces allowed
around the brackets?) - how about just specifying "xxx..." only?
3. what about an initializer_list constructor (can you check the length of
an initializer_list at compile time? probably not?) or actually a
constructor that takes 16 bytes?
All the examples construct arrays and spans, etc from { a, b, c, ... } but
you can't create a uuid directly from { a, b, c ... } ?
next week in San Diego.
Questions:
0. will the author be present? (If not, would they like me to present it?)
1. The main question I still have is this idea of whether the internal byte
order is fixed, or implementation defined.
There are begin/end iterators, and they mention impl defined order, but
then there is also as_bytes, returning a span...
But that span is almost useless if the byte order is impl-defined, so I'm
confused.
The difference between fixed order and impl defined order comes down to, I
think, being able to use int compares (or even a 128bit int compare) vs
memcmp() when doing comparisons (for ordering at least - you could do
128bit == regardless of byte order). Is that the main difference?
(And faster compare comes at the cost of more expensive iteration, I think.)
2. why parse both "xxx...." and "{ xxx..... }" (and are spaces allowed
around the brackets?) - how about just specifying "xxx..." only?
3. what about an initializer_list constructor (can you check the length of
an initializer_list at compile time? probably not?) or actually a
constructor that takes 16 bytes?
All the examples construct arrays and spans, etc from { a, b, c, ... } but
you can't create a uuid directly from { a, b, c ... } ?
--
Be seeing you,
Tony
--
You received this message because you are subscribed to the Google Groups "ISO C++ Standard - Future Proposals" group.
To unsubscribe from this group and stop receiving emails from it, send an email to std-proposals+***@isocpp.org.
To post to this group, send email to std-***@isocpp.org.
To view this discussion on the web visit https://groups.google.com/a/isocpp.org/d/msgid/std-proposals/CAOHCbits_Afe5ONhBYRi2Nd0uhzyYp4rrDXPskn4VuwN4Rfw8g%40mail.gmail.com.
Be seeing you,
Tony
--
You received this message because you are subscribed to the Google Groups "ISO C++ Standard - Future Proposals" group.
To unsubscribe from this group and stop receiving emails from it, send an email to std-proposals+***@isocpp.org.
To post to this group, send email to std-***@isocpp.org.
To view this discussion on the web visit https://groups.google.com/a/isocpp.org/d/msgid/std-proposals/CAOHCbits_Afe5ONhBYRi2Nd0uhzyYp4rrDXPskn4VuwN4Rfw8g%40mail.gmail.com.