3 ms·
Non-template-based code generation. So many tools depend on interpolation and concatenating strings together resulting in terrible-looking and error-prone code.
by sizediterable 5y ago
Non-template-based code generation. So many tools depend on interpolation and concatenating strings together resulting in terrible-looking and error-prone code. What you want is an API for building and manipulating a concrete syntax tree-like structure. Bonus points if the nodes have type information, which would make things like codemods even more powerful.
HHAST and LibCST are notable examples in the right direction.
- psadri 5y agoI like SQL query builders for the same reason.