From: Ian Jackson Subject: Re: [PATCH v3-RESEND 03/28] libxl: ocaml: avoid reserved words in type and field names. Date: Mon, 28 Oct 2013 15:24:53 +0000 Message-ID: <21102.33221.916652.925803@mariner.uk.xensource.com> References: <1382362365-6645-1-git-send-email-rob.hoes@citrix.com> <1382362365-6645-4-git-send-email-rob.hoes@citrix.com> <1382652256.22417.131.camel@hastur.hellion.org.uk> <8ED3B5B4-88F2-4D2A-9029-199A7C963EEB@citrix.com> <1382684169.22417.142.camel@hastur.hellion.org.uk> <360717C0B01E6345BCBE64B758E22C2D142C2F@AMSPEX01CL03.citrite.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <360717C0B01E6345BCBE64B758E22C2D142C2F@AMSPEX01CL03.citrite.net> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Rob Hoes Cc: Ian Campbell , "" List-Id: xen-devel@lists.xenproject.org Rob Hoes writes ("RE: [PATCH v3-RESEND 03/28] libxl: ocaml: avoid reserved words in type and field names."): > > There aren't all that many ocaml keywords, I suppose? I expect > > many of them are unlikely field names. If we don't want to > > enumerate them up front (which I would accept, it's a bit tedious) > > I'd be perfectly happy to fault things in as the libxl IDL gains > > new inconveniently named fields, it'll break the build so we > > should notice pretty quickly! > > I'd be very happy with that, if it is acceptable to you and IanJ! That would be fine by me. I would marginally prefer to simply dump a list of the ocaml keywords into the ocaml idl generator. (I definitely agree with Ian that the transformation should be such that most words are unchanged. I think s/^(xl_)*(KEYWORD)$/xl_$&/ should do it.) Ian.