Nebu · @nebu
32 followers · 152 posts · Server mastodon.lol

@talios @myfear Java already automatically does some of the that would enable (the OP mentions "Compile-time constant folding").

seems to provide a framework for defining more easily. Perhaps a library can provide an `@ConstExpr` annotation alongside a 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

Last updated 2 years ago