Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 17 May 2009 14:22:31 +0400
From:      Stanislav Sedov <stas@FreeBSD.org>
To:        "M. Warner Losh" <imp@bsdimp.com>
Cc:        rick-freebsd2008@kiwi-computer.com, freebsd-hackers@FreeBSD.org, christoph.mallon@gmx.de
Subject:   Re: C99: Suggestions for style(9)
Message-ID:  <20090517142231.2968f311.stas@FreeBSD.org>
In-Reply-To: <20090501.081229.1359784281.imp@bsdimp.com>
References:  <20090430233648.GA95360@keira.kiwi-computer.com> <20090430.183727.803597558.imp@bsdimp.com> <49FA8E88.1040905@gmx.de> <20090501.081229.1359784281.imp@bsdimp.com>

next in thread | previous in thread | raw e-mail | index | archive | help
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Fri, 01 May 2009 08:12:29 -0600 (MDT)
"M. Warner Losh" <imp@bsdimp.com> mentioned:

> 
> This is a religious point, and we're dangerously close to saying my
> religion is better than your religion.  I don't like this part of the
> proposal at all.  I can see the value in relaxing it for when you have
> a series of variables that are initialized, but relaxing it to the
> point where you intermix code and declarations goes way too far.  It
> is bad enough to have to deal with inner scopes, but tolerable.  It is
> intolerable to have to look for it anywhere in a big function.  It
> tends to encourage spaghetti code, which is one of the things that
> style(9) tries to discourage in many subtle ways.
> 

Seconded. Furthermore, when declaring the every advanced editor supports
jumping to variables declarations, Christoph ignored the point that
the code gets written for people and not for compilers and editors. Last
ones can live without any style at all, people can't. The thing people
love about BSD code is that it is always perfectly known where to look
for declarations and specific parts of the code. Strict style implies
a lot of implicit knowledge, so you don't have to study a piece of code
for a long time before you understand how it works in general. By relaxing
style(9) we're in danger of loosing this benefit.

- -- 
Stanislav Sedov
ST4096-RIPE
-----BEGIN PGP SIGNATURE-----

iEYEARECAAYFAkoP5WwACgkQK/VZk+smlYFocACfTzVHRpQb8H3tAeg97ljqn3bv
DZ4An2iOQXXjTNWpivyHrGR3sBaeOfmJ
=qz0I
-----END PGP SIGNATURE-----

!DSPAM:4a0fe550994292383363236!





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090517142231.2968f311.stas>