Skip to content.

Manageability

Sections
Personal tools
You are here: Home » blog » archive » Brad Cox's Quasi Literals For Java

Brad Cox's Quasi Literals For Java

20030106092242

Brad Cox of Objective-C fame has written a preprocessor for Java (see Java+ Preprocessor).  The peculiarly unique piece about this preprocessor is the way it does Quasi-Literals. To learn more about Quasi-Literals head over to "Why Quasi-Literals?". 

Brad Cox adds a twist on Quasi-Literals, allowing for recursive applicaton based on user defined string pairs.  Take a look at the explanation, it handles multi-line strings and i18n quite cleanly.

Its a nice mechanism to keep in mind, just in case we upgrade the Java language.

Incidentally, Quasi-Literals are the proper abstractions to use for defining macros, in particularly Hygienic Macros.  JSE uses Quasi-Literals albeit with a different syntax.

Created by admin
Last modified 2003-07-30 04:14 PM
 

Powered by Plone

This site conforms to the following standards: