Subject: Re: Kodformateringsstandarder WAS Re: Är det bara jag som...

Re: Kodformateringsstandarder WAS Re: Är det bara jag som...

From: Peter Eriksson <peter_at_emediate.se>
Date: Fri, 18 Nov 2011 10:30:27 +0100

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

http://www.elifulkerson.com/projects/pretty-c++-formatter.php

Där har ni lösningen, så kan alla göra det som de känner är bäst. Sen pipe:a sourcen genom scriptet när man checkar ut.

On 11/18/2011 10:28 AM, Per Andersson wrote:
> (Ny tråd för orelaterad diskussion.)
>
> 2011/11/18 1337 <1337decker_at_gmail.com>:
>> Är det vettigt att skriva curly brackets på egna rader? Jämför följande två
>> exempel:
>>
>> int main(void)
>> {
>> ...
>> }
>>
>> versus
>>
>> int main(void) {
>> ...
>> }
>>
>> Några åsikter?
>
> Det handlar om tycke och smak vad gäller läsbarhet. Här tycker ju alla
> olika och inget är rätt eller fel. Lexern och kompilatorn fattar ju ändå.
>
> Det finns ju många stilar, t ex
>
> http://www.gnu.org/prep/standards/standards.html#Formatting
>
> http://en.wikipedia.org/wiki/Indent_style
>
>

- --
Regards
Peter Eriksson - Systems Administrator
http://0x2a.se/o.html

"This e-mail is intended for the named recipient(s) only, and may
contain privileged and confidential information from Emediate ApS and
its affiliates. If you received this message in error please notify the
sender and delete the e-mail from your system. Any use, copying,
disclosure, distribution, reliance upon or exploitation of the e-mail or
its contents by an unintended recipient is strictly prohibited."
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk7GJbMACgkQ2CS6rJKxQNSvvACffHV2OVi0rWaTF9CEKOq0yRe6
7twAnRW+hIWxG0+L8BbdF6jc4Dsu2oYY
=rOpR
-----END PGP SIGNATURE-----
_______________________________________________
http://www.foss-sthlm.se/
http://cool.haxx.se/cgi-bin/mailman/listinfo/foss-sthlm
Received on 2011-11-18