If you prefer to use |>
, with my implementation you can already write:
julia> "a=1 b=2 c=3" |> {
split
@. split(it, "=")
map({Symbol(it[1]) => parse(Int, it[2])}, it)
NamedTuple
}
(a = 1, b = 2, c = 3)
(although, as previously explained, there are reasons to prefer obj.{...}
over obj |> {...}
)
What do you believe to be the advantages of this approach over my proposal?