You can do similar stuff in ~40-year-old sh shell code - with tricks like `eval echo \$$foo` - so I'd bet that the concept is older (& more common) than dirt.