TLDR Dev · MISCELLANEOUS

UNROLLED CODE

noteflakes.com16 min read

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.