@talios @myfear Java already automatically does some of the #optimizations that #constexpr would enable (the OP mentions "Compile-time constant folding").
#ProjectLeyden seems to provide a framework for defining #condensers more easily. Perhaps a library can provide an `@ConstExpr` annotation alongside a #compiler plugin to do exactly what you would expect coming from a C++ background -- such as warn you when your expression isn't actually a compile time constant.
#optimizations #constexpr #projectleyden #condensers #compiler