Home > lambdatheultimate > Fortifying Macros

Fortifying Macros

September 10th, 2010 09:23 admin Leave a comment Go to comments

Fortifying Macros. Ryan Culpepper, Matthias Felleisen, ICFP 2010.

Existing macro systems force programmers to make a choice between clarity of specification and robustness. If they choose clarity, they must forgo validating significant parts of the specification and thus produce low-quality language extensions. If they choose robustness, they must write in a style that mingles the implementation with the specification and therefore obscures the latter. This paper introduces a new language for writing macros. With the new macro system, programmers naturally write robust language extensions using easy-to-understand specifications. The system translates these specifications into validators that detect misuses—including violations of context-sensitive constraints—and automatically synthesize appropriate feedback, eliminating the need for ad hoc validation code.

Presents syntax-parse, which seems like a truly great advancement over existing macro writing facilities.

Source: Fortifying Macros

Related Articles:

  1. Macros that Work Together
  2. A Theory of Typed Hygienic Macros
  3. How to Write a Programming Book
  4. Office 15 Development To Go JavaScript, HTML5 For Extensibility
  5. What Today’s Coders Don’t Know and Why It Matters
blog comments powered by Disqus