[ 
https://issues.apache.org/jira/browse/AVRO-258?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12793064#action_12793064
 ] 

Thiruvalluvan M. G. commented on AVRO-258:
------------------------------------------

The syntax looks fine for me. The only addition I'd like to add to the grammar 
is to support optional fields in records. We use the idiom that a union of a 
"Type" and "null"  makes the field optional. I'd like the language support it 
directly. That is I'd like something like:

<pre>
record r {
    string name;
    optional string org;
}
</pre>

as a shorthand for

<pre>
record r {
    string name;
    union { null, string } org;
}
</pre>



> Higher-level language for authoring schemata
> --------------------------------------------
>
>                 Key: AVRO-258
>                 URL: https://issues.apache.org/jira/browse/AVRO-258
>             Project: Avro
>          Issue Type: New Feature
>          Components: spec
>            Reporter: Todd Lipcon
>            Assignee: Todd Lipcon
>         Attachments: AVRO-258.txt, simple-genned.avpr, simple.avpr
>
>
> Early users of Avro have noted that authoring schemas and especially 
> protocols in JSON feels unnatural. This JIRA is to work on a higher-level 
> language that feels more like defining interfaces and classes in Java/C/etc.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to