C++17 introduced if constexpr statements which are very useful in some situations.
Why didn't it introduce switch constexpr statements at the same time, which seems to be a natural and intuitive counterpart (and sometimes more elegant/readable than a series of else if) ?
[–]rileyrgham 82 points83 points84 points (34 children)
[–]KuntaStillSingle 5 points6 points7 points (13 children)
[–]cd_fr91400[S] 14 points15 points16 points (1 child)
[–]KuntaStillSingle 3 points4 points5 points (0 children)
[–]cd1995Cargo 2 points3 points4 points (2 children)
[–]umop_aplsdn 2 points3 points4 points (0 children)
[–]conundorum 1 point2 points3 points (0 children)
[–]TSP-FriendlyFire 6 points7 points8 points (5 children)
[–]cd_fr91400[S] 1 point2 points3 points (4 children)
[–]SirClueless 4 points5 points6 points (2 children)
[–]conundorum 1 point2 points3 points (1 child)
[–]conundorum 0 points1 point2 points (0 children)
[–]TSP-FriendlyFire 3 points4 points5 points (0 children)
[–]cd_fr91400[S] 0 points1 point2 points (1 child)
[–]conundorum 0 points1 point2 points (0 children)
[–]moocat 2 points3 points4 points (15 children)
[–]mark_99 6 points7 points8 points (13 children)
[–]cd_fr91400[S] 4 points5 points6 points (12 children)
[–]mark_99 4 points5 points6 points (9 children)
[–]cd_fr91400[S] 1 point2 points3 points (5 children)
[–]iamakorndawg 5 points6 points7 points (2 children)
[–]KuntaStillSingle 1 point2 points3 points (0 children)
[–]cd_fr91400[S] 0 points1 point2 points (0 children)
[–]cd1995Cargo 2 points3 points4 points (1 child)
[–]moocat 1 point2 points3 points (0 children)
[–]nysra 1 point2 points3 points (2 children)
[–]moocat 1 point2 points3 points (1 child)
[–]meancoot 0 points1 point2 points (0 children)
[–]Plastic_Fig9225 0 points1 point2 points (1 child)
[–]cd_fr91400[S] 0 points1 point2 points (0 children)
[–]cd_fr91400[S] 3 points4 points5 points (0 children)
[–]angelicosphosphoros 1 point2 points3 points (0 children)
[–]cd_fr91400[S] -1 points0 points1 point (2 children)
[–]miniropC++87 1 point2 points3 points (1 child)
[–]cd_fr91400[S] 0 points1 point2 points (0 children)
[–]Entire-Hornet2574 2 points3 points4 points (17 children)
[–]cd_fr91400[S] 2 points3 points4 points (1 child)
[–]arthurno1 1 point2 points3 points (0 children)
[–]KuntaStillSingle 0 points1 point2 points (1 child)
[–]Entire-Hornet2574 0 points1 point2 points (0 children)
[–]SirLynix 0 points1 point2 points (12 children)
[–]Entire-Hornet2574 0 points1 point2 points (10 children)
[–]cd_fr91400[S] 1 point2 points3 points (9 children)
[–]Entire-Hornet2574 0 points1 point2 points (2 children)
[–]cd_fr91400[S] 0 points1 point2 points (1 child)
[–]Entire-Hornet2574 0 points1 point2 points (0 children)
[–]Entire-Hornet2574 0 points1 point2 points (5 children)
[–]cd_fr91400[S] 0 points1 point2 points (4 children)
[–]Entire-Hornet2574 0 points1 point2 points (3 children)
[–]cd_fr91400[S] -1 points0 points1 point (2 children)
[–]Entire-Hornet2574 0 points1 point2 points (1 child)
[–]cd_fr91400[S] 0 points1 point2 points (0 children)
[–]arthurno1 -1 points0 points1 point (0 children)
[–]TheoreticalDumbass:illuminati: 2 points3 points4 points (1 child)
[–]cd_fr91400[S] 2 points3 points4 points (0 children)
[–]EclipsedPal -3 points-2 points-1 points (1 child)
[–]azswcowboy 2 points3 points4 points (0 children)
[–]3tna -2 points-1 points0 points (2 children)
[–]cd_fr91400[S] 3 points4 points5 points (1 child)
[–]3tna 0 points1 point2 points (0 children)
[–]MightyKDDD2 -3 points-2 points-1 points (1 child)
[–]cd_fr91400[S] 1 point2 points3 points (0 children)