WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-api

RE: [Xen-API] [PATCH] Just sanitizing indentation in stdext/listext.mli

To: Matthias Goergens <matthias.goergens@xxxxxxxxxx>
Subject: RE: [Xen-API] [PATCH] Just sanitizing indentation in stdext/listext.mli
From: Jonathan Davies <Jonathan.Davies@xxxxxxxxxxxxx>
Date: Tue, 4 May 2010 17:32:45 +0100
Accept-language: en-US
Acceptlanguage: en-US
Cc: Jonathan, Knowles <Jonathan.Knowles@xxxxxxxxxxxxx>, "xen-api@xxxxxxxxxxxxxxxxxxx" <xen-api@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Tue, 04 May 2010 09:32:59 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <4BDABB0C.1040400@xxxxxxxxxx>
List-help: <mailto:xen-api-request@lists.xensource.com?subject=help>
List-id: Discussion of API issues surrounding Xen <xen-api.lists.xensource.com>
List-post: <mailto:xen-api@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=unsubscribe>
References: <795ac4c3776bc0716c54.1268738919@matthias-desktop> <4B9F939A.3080104@xxxxxxxxxxxxx> <4BDABB0C.1040400@xxxxxxxxxx>
Sender: xen-api-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcroVgidPN+x97dMRyGr1t9O/ZDfdwDTz/Lg
Thread-topic: [Xen-API] [PATCH] Just sanitizing indentation in stdext/listext.mli
Hi Matthias,

The current version of the guidelines state that tabs are preferred to spaces: 
http://wiki.xensource.com/xenwiki/OCaml_Best_Practices#line-223

However, a lot of the existing source files use spaces. Moreover, some source 
files contain an ugly mix of spaces and tabs. Generally, the informal policy 
for patching an existing file is to try to use tabs where possible unless this 
would make the formatting of the new code inconsistent with nearby code in the 
same file.

Of course, another option would be to reformat entire files so that they are 
consistent with the guidelines, but this would have the unfortunate 
side-effects of (i) obscuring the history of the files (consider the output of 
hg annot) and (ii) causing needless merge headaches for anyone who has an 
existing patch against the original file.

Regards,

Jonathan

On 30 April 2010 12:12, Matthias Goergens wrote:
> Hi Jonathan,
> 
> I am just looking over my recent patches.  There are lots of instances
> where I use spaces instead of tabs.  Unfortunately the surrounding
> source file uses spaces often, too.
> 
> I guess I will just correct the tabs in the patches when either the
> surroundings use tabs already, or when the patch is explicitly aimed at
> fixing indentation.
> 
> What do you think?
> 
> Matthias.
> 
> _______________________________________________
> xen-api mailing list
> xen-api@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/mailman/listinfo/xen-api

_______________________________________________
xen-api mailing list
xen-api@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/mailman/listinfo/xen-api

<Prev in Thread] Current Thread [Next in Thread>
  • RE: [Xen-API] [PATCH] Just sanitizing indentation in stdext/listext.mli, Jonathan Davies <=