TLDR Dev · MISCELLANEOUS
UNROLLED CODE
Summary from the TLDR Dev newsletter
Explicit, repetitive Ruby code can make algorithms easy to inspect and resemble the optimized output of ERB and Papercraft template compilers. A proposed quote/unquote mechanism would let Ruby generate code by composing immutable syntax trees instead of concatenating source strings, with examples covering memoization, templates, and routing.