[patch] 6746458 support for exotic identifiers (identifier superquote)
Per Bothner
Per.Bothner at Sun.COM
Tue Sep 9 16:52:38 PDT 2008
Jonathan Gibbons wrote:
> Since the characters are illegal at the JVM level, what's the reason for
> allowing them?
See the first paragraph of John's announcement: to allow integration
with other langauges, that don't have those restrictions (or have
different restrictions).
For example, the Lisp/Scheme divide function is named "/" - a simple
implementation strategy is to use static Java methods with the same
name:
public class LispBuiltins {
...
public static Object #"/" (Object x, Object y) { ... }
};
--
--Per Bothner
per.bothner at sun.com per at bothner.com http://per.bothner.com/
More information about the compiler-dev
mailing list