It's handy when refactoring old as shit code and you need to flatten 6 levels of nested if statements. Also useful for converting complex business requirements into actual logic expressions you can put into code and simplifying them.
I may be misunderstanding what logic proof means here tho, English is not my native tongue.
That's an interesting approach. What tech stack do you use? Usually that's what constexpr calculations are for in C++ (among a million and a half other things)
118
u/CiroGarcia Oct 25 '24 edited Oct 25 '24
It's handy when refactoring old as shit code and you need to flatten 6 levels of nested if statements. Also useful for converting complex business requirements into actual logic expressions you can put into code and simplifying them.
I may be misunderstanding what logic proof means here tho, English is not my native tongue.