27Oct00
Procedural Macros for Java
Bachrach and Playford
CodeQuote Example One
•
Fragment test = #{ isOn() };
•
Fragment then = #{ turnOff(); };
•
return #{ if (?test) ?then };
•
=>
•
#{ if (isOn()) turnOff(); }
•