On Tuesday, 12 December 2023 at 21:48:59 UTC, Timon Gehr wrote: > > The idiomatic way to achieve what you want is this: > __traits(getMember, s, field) = x; No that will break eventually because strings are not reliable references; also __traits are ugly and for other abstractions