|
|
|
|
|
by SuperV1234
52 days ago
|
|
> would only ever be put into a production code base by the most amateur of architecture astronauts, shortly before their startup fails? Yep, definitely failure of understanding. :) > For real though, defend constexpr two-stepping as a real use case for serious people. Of course, here's a use case: I am a serious person developing a library that provides a nice API to solve a real-world problem using C++26 reflection. As part of the internal library machinery, I need some temporary storage for some compile-time algorithm (e.g. building a graph for automatic parallelization, or some other thing like that). In an internal helper function of my library, I use constexpr two-stepping to solve the problem without imposing hard limits on my algorithms and keeping the final API as simple as possible for the end user. Then I submit my PR, but htobc reviews it and immediately rejects it, ignoring the real business value of the library because I made a conscious engineering decision to use a niche technique to solve a language limitation as part of my library implementation. Then my startup fails. |
|
(There are far simpler ways to do that.)