Coding style [message #503170] |
Thu, 10 December 2009 23:22  |
Eclipse User |
|
|
|
Hi,
Buckminster uses a coding style that differs from the one used by the majority of the projects at Eclipse.org. In
particular, we put the '{' on a new line, i.e.
int size()
{
return size;
}
instead of:
int size() {
return size;
}
For historical reasons (before syntax coloring made the distinction really easy), we also prefix our fields with m_ or
s_, i.e.
private int m_size;
rather than
private int size;
I think it might be time to abandon our own style.
What's your opinion?
Regards,
Thomas Hallgren
|
|
|
|
|
|
|
|
Re: Coding style [message #512814 is a reply to message #512811] |
Sun, 07 February 2010 19:06  |
Eclipse User |
|
|
|
Finally !
(I have always hated the m_, and s_ prefixes...)
- henrik
On 2/7/10 11:26 PM, Thomas Hallgren wrote:
> I just released the cocing style change to the SVN trunk which means
> that we now have a new revision of all java code. It will be hard to
> make history comparisons that span over this revision. Such comparisons
> will likely need to be split in two. Prior and after the coding style
> change.
>
> - thomas
>
>
> On 12/11/2009 10:12 AM, Thomas Hallgren wrote:
>> Hi,
>> Buckminster uses a coding style that differs from the one used by the
>> majority of the projects at Eclipse.org. In particular, we put the '{'
>> on a new line, i.e.
>>
>> int size()
>> {
>> return size;
>> }
>>
>> instead of:
>>
>> int size() {
>> return size;
>> }
>>
>> For historical reasons (before syntax coloring made the distinction
>> really easy), we also prefix our fields with m_ or s_, i.e.
>>
>> private int m_size;
>>
>> rather than
>>
>> private int size;
>>
>> I think it might be time to abandon our own style.
>>
>> What's your opinion?
>>
>> Regards,
>> Thomas Hallgren
>
|
|
|
Powered by
FUDForum. Page generated in 0.04676 seconds