niedz., 8 mar 2026 o 05:35 Amlal El Mahrouss via Boost < boost@lists.boost.org> napisaĆ(a):
Hello Seth, Yes `multi::extensions_t` and `a.extensions()` does read as off. But Boost.Multi has already a container called 'extents' ( https://github.com/correaa/boost-multi/blob/b7f4dcf08b18628e1ae7aba9f44f7124... ) Which does make use of `extensions_type`.
From what I understand so far about the library's design, `extensions_type serves as an underlying type of the `extents` type, which could explain the odd naming.
I agree with Seth's position here. The correct English word for the concept is `extents`, and this is what the users should see. There is even no clash with using the same name for the public type and the member function: multi::extents ext = arr.extents(); Boost.Multi has a PR issue for that: https://github.com/correaa/boost-multi/issues/127 If the library needs a "private detail" type for being a base of something, because this is a "private detail", it can afford to have a longer name, like "basic_extents". BTW, the above ticket also shows how the different initialization syntax choices can lead to bugs. Regards, &rzej;