Re:Comparison of C++17, Go, and Java for a next-generation s...
by Leherenn on Friday April 24, 2020 @02:40AM
(#22965275)
Array is great as far as I know.
[ Parent
| on HN ]
Re:Comparison of C++17, Go, and Java for a next-generation s...
by kllrnohj on Friday April 24, 2020 @02:17PM
(#22971289)
std::array is great except it's annoying to statically initialize. Really wish make_array or to_array were non-experimental a lot sooner (to_array finally did land in C++20 at least).
But yeah it does mean you can finally stop doing that silly `sizeof(a)/sizeof(a[0]);` trick.