Re: Java global implicit typing

> String s;
> char c;
> 
> c = 5;
> s = 5;
> 
> won't work.

The "char c" case actually does work (at least with JDK 1.3
on my Mac).

> A general observation: Java syntax corresponds to RDF/XML, whereas Java 
> bytecode can be viewed as a counterpart of RDF abstract model. In the 
> bytecode, all of the above constants are "locally typed" 
> (http://java.sun.com/docs/books/vmspec/2nd-edition/html/ClassFile.doc.html#20080). 

My point is that I as a developer often don't have to be
concerned about the exact numeric type chosen by the
developer of a class (schema/ontology) that I'm using, and
don't have to litter my code (literals) with those types.

	Mike

Received on Sunday, 11 August 2002 23:49:46 UTC