On Saturday, 23 January 2021 at 00:21:25 UTC, H. S. Teoh wrote: > D is the only language I know of that can automate things to > this level > of awesomeness. So learn a programming language with an AST based macro system. There are a couple of these around these days and some of them (Rust, Nim, Elixir ...) can generate a 'switch' statement at compile-time...