A practical unification of multi-stage programming and macros

Nicolas Stucki, Aggelos Biboudis, Martin Odersky

2018 · 24 citations · 18 references

DOIFull text

Open access

Concepts

Abstract

Program generation is indispensable. We propose a novel unification of two existing metaprogramming techniques: multi-stage programming and hygienic generative macros. The former supports runtime code generation and execution in a type-safe manner while the latter offers compile-time code generation.

References

18