Re: [dev] [sbase] style

From: <k0ga_AT_shike2.com>
Date: Wed, 19 Nov 2014 20:29:30 +0100

>>> types
>>> =====
>>> user defined types start with a capital letter
>>> when possible typedef struct {} Name;
>>
>> Debatable. I'd like to hear more opinions on this.
>
> In most suckless code types always start with capital letters (pretty
> much acme/p9 influenced), as opposed to lower case everything else.
> This is much more readable than foo_t, which can be overlooked easily
> to be a type.
>
> So definitely agree with the proposal.

[any]_t is a reserved namespace in POSIX. User symbols should not use
it [1].


>>> more alignment
>>> --------------
>>> somefunc(foo .bar, baz );
>>> somefunc(bonzai.bar, qux );
>>> somefunc(blah .bar, blargh);
>>
>> I do not like this.
>
> This sucks. No pretty printing of arg lists. Just a whitepace after each comma.


Yeah, it really sucks!!

Regards,

[1] http://pubs.opengroup.org/onlinepubs/007904975/functions/xsh_chap02_02.html
Received on Wed Nov 19 2014 - 20:29:30 CET

This archive was generated by hypermail 2.3.0 : Wed Nov 19 2014 - 20:36:14 CET