Re: Why do named schemas have namespaces?

2009-11-19 Thread Philip Zeyliger
On Thu, Nov 19, 2009 at 4:40 PM, Doug Cutting wrote: > Philip Zeyliger wrote: >> >> I think that for keywords, that language's implementation should >> generate something sensible if there's code generation installed.  So, >> the Java specific compiler could have a list of Java keywords >> embedde

Re: Why do named schemas have namespaces?

2009-11-19 Thread Doug Cutting
Philip Zeyliger wrote: I think that for keywords, that language's implementation should generate something sensible if there's code generation installed. So, the Java specific compiler could have a list of Java keywords embedded. If it sees "long", it just replaces it with "long_" in the genera

Re: Why do named schemas have namespaces?

2009-11-19 Thread Philip Zeyliger
I think that for keywords, that language's implementation should generate something sensible if there's code generation installed. So, the Java specific compiler could have a list of Java keywords embedded. If it sees "long", it just replaces it with "long_" in the generated code. The only reser

Re: Why do named schemas have namespaces?

2009-11-16 Thread Patrick Hunt
Same problem for enums btw. If you use symbols:["long", "null"] etc... the java will fail to compile (fine for python though on both these issues). Patrick Doug Cutting wrote: Patrick Hunt wrote: Re 153 - last night I noticed that if you spec a record/enum/etc... with a name that starts with

Re: Why do named schemas have namespaces?

2009-11-16 Thread Doug Cutting
Patrick Hunt wrote: Re 153 - last night I noticed that if you spec a record/enum/etc... with a name that starts with lower case it fails to compile in Java: * start with [A-Za-z_] Add this to 153 or a new JIRA? Do we want to enforce naming conventions or just leave them conventions? If the

Re: Why do named schemas have namespaces?

2009-11-16 Thread Patrick Hunt
Re 153 - last night I noticed that if you spec a record/enum/etc... with a name that starts with lower case it fails to compile in Java: * start with [A-Za-z_] Add this to 153 or a new JIRA? Patrick Doug Cutting wrote: Jeff Hammerbacher wrote: In the Avro spec, namespaces are defined for pr

Re: Why do named schemas have namespaces?

2009-11-16 Thread Doug Cutting
I think AVRO-153 is fine for this. Thanks! Doug Jeff Hammerbacher wrote: Hey Doug, Great, would you like to do the work on the spec under the aegis of 153 or shall I open another ticket for adding namespaces to the schema portion of the spec? Thanks, Jeff On Mon, Nov 16, 2009 at 11:36 AM, D

Re: Why do named schemas have namespaces?

2009-11-16 Thread Jeff Hammerbacher
Hey Doug, Great, would you like to do the work on the spec under the aegis of 153 or shall I open another ticket for adding namespaces to the schema portion of the spec? Thanks, Jeff On Mon, Nov 16, 2009 at 11:36 AM, Doug Cutting wrote: > Jeff Hammerbacher wrote: > >> In the Avro spec, namespa

Re: Why do named schemas have namespaces?

2009-11-16 Thread Doug Cutting
Jeff Hammerbacher wrote: In the Avro spec, namespaces are defined for protocols, but not for named schemas. Yet in both the Java and Python codebases, it appears that schemas can have a namespace. Should the code be removed, or the spec be updated? The spec should be updated. Schemas can speci

Why do named schemas have namespaces?

2009-11-16 Thread Jeff Hammerbacher
Hey, In the Avro spec, namespaces are defined for protocols, but not for named schemas. Yet in both the Java and Python codebases, it appears that schemas can have a namespace. Should the code be removed, or the spec be updated? Thanks, Jeff