Sorry for necroing but I see people still liking my post (Construct NamedTuple dynamically - #2 by kristoffer.carlsson). It is likely better to use:
julia> mynames = (:a, :b, :c);
julia> myvalues = [1, 2.0, "hello world"];
julia> (;zip(mynames, myvalues)...)
(a = 1, b = 2.0, c = "hello world")