a couple of “run time parsing and rewriting” ideas for ruby:
1) inline methods. Not too hard, right?
2) if you’ve got
if a.is_a? Array
# other stuff
then you “could” wrap go, determine its inputs, then rewrite it as
and call it appropriately.