[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH v2-resend 07/30] libxl: ocaml: avoid reserved words in type and field names.
Rob Hoes writes ("[Xen-devel] [PATCH v2-resend 07/30] libxl: ocaml: avoid reserved words in type and field names."): > Current just s/type/ty/ and there are no such fields (yet) so no > change to generated code. I think this should be done in a systematic way, and one which is an injection[1]. What if someone later introduces a field called "ty" in the same struct as one called "type" ? I don't know what a good convention would be in ocaml, but for example you could prefix everything with "idl_" (including names starting "idl_"). [1] http://en.wikipedia.org/wiki/Injection_%28mathematics%29 Ian. _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |