Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 28 Jan 2005 17:33:27 +0000
From:      Paul Richards <paul@originative.co.uk>
To:        arch@freebsd.org
Subject:   c99/c++ localised variable definition
Message-ID:  <20050128173327.GI61409@myrddin.originative.co.uk>

next in thread | raw e-mail | index | archive | help
This is likely to he highly contraversial, since generally change
tends to be in this project.

People used to programming in C++ or Perl (and many others) are used
to defining variables as near to use as possible. This have never been
possible before in C, but now with c99 it is.

Personally, I find the c++/perl convention to be much less error prone
and more intuitive and since c99 now supports it too it seems the
standards body sees the benefits of this approach as well.

So, are we going to start allowing this feature to be used in FreeBSD
since it would require a pretty major change to style(9).

I noticed when trying to use this feature that we're not running
the compiler with c99 fully supported yet so I guess that's perhaps
the first step to discuss.

-- 
Paul Richards



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