I'm doing a lot of code-generation. There are two patterns that come up all
over the place - adding a suffix to a symbol and interpolating from an
array comprehension. This is pretty verbose even in the simplest case:

quote
  ...
  row = tuple($([:($(Symbol("val_$ix))) for ix in order]...))
  ...
end

I spent a fair amount of time tracking down off-by-1-paren typos that don't
show up until the code is run and behaves weirdly eg $(Symbol("foo_$ix()"))
vs $(Symbol("foo_$x")()) vs $(Symbol("foo_$x"))()

Is there a better way of handling this?

Reply via email to