[r6rs-discuss] JAR statement
John Cowan
cowan at ccil.org
Fri Feb 20 22:28:50 EST 2009
Thomas Lord scripsit:
> On Fri, 2009-02-20 at 18:24 -0800, Arthur A. Gleckler wrote:
>
> > Type type = new Type();
>
>
> What asshat writes that kind of code? Why does the freaking language
> definition need to guard against that particular asshat.
Asshattery or not, this is the standard convention for declaring an
initialized local variable in Java. It would look like this in CL,
providing you set the current readtable's case to :preserve :
(let ((type (make-instance 'Type)))
(declare (type Type type))
...)
Which indeed looks pretty stoopit. But when I hear someone in a Java
context say "type type equals new type", I know exactly what is meant.
--
John Cowan <cowan at ccil.org>
Yakka foob mog. Grug pubbawup zink wattoom gazork. Chumble spuzz.
--Calvin, giving Newton's First Law "in his own words"
More information about the r6rs-discuss
mailing list