Metaprogramming in Swift?

While no idea if it'll become "the way" here's some interesting ongoing work by Eugene Burmako (swift4tensorflow, google): Swift as syntactic sugar for MLIR that you might find interesting (see the attached doc for details).