aitor said on Sat, 19 Jul 2025 13:06:45 +0200
>On 19/7/25 12:48, aitor wrote:
>
>> I'll push these examples to git because I think they illustrate very
>> well the use of daemonlets.
>
>At this point, I have a doubt about which coding style is more
>acceptable. It seems to me that eudev uses the kernel coding style,
>except for namely functions, that should have the opening brace at the
>beginning of the next line, thus
>
>int function(int x)
>{
> body of function
>}
>
>instead of:
>
>int function(int x) {
> body of function
>}
>
>as eudev does. However, I prefer the first one.
I prefer the second way for one reason: It's how Vim naturally formats
C and several other languages.
Before encountering Vim, I used the Whitesmiths format:
int function(int x)
{
body of function
}
In my opinion Whitesmiths blockiness is very readable.
SteveT
Steve Litt
http://444domains.com