Yeah, for two or three fields it is shorter, but I have something around 10 fields in my original code and i also I have to specify the new names on my own and cannot use a Tuple of names.
Probably the generator version is the shortest is this case but perhaps someone knows a trick I am not aware ofโฆ
julia> Base.getindex(A::NamedTuple, args::Tuple) = NamedTuple{args}(getfield(A, i) for i in args)
julia> (a = 1, b = 2, c = 3)[(:a, :b)]
(a = 1, b = 2)
with the risk that base Julia at some future point introduces a conflicting method for that type signature.