[Proj] Code style in Proj
Mateusz Loskot
mateusz at loskot.net
Sun Apr 22 15:17:00 PDT 2018
On 22 April 2018 at 20:07, Kurt Schwehr <schwehr at gmail.com> wrote:
> Kristian,
>
> Things to do when you are about to have a kid and want a distraction :)
Congratulations! I still remember that distraction pursuit myself ;-)
> On Sun, Apr 22, 2018 at 8:10 AM, Kristian Evers <kreve at sdfe.dk> wrote:
>>
>> - Combine definition and declaration
>>
>> It works in this example but I don’t think it can be enforced in more
>> complicated code.
>> Variable declarations have to be made at the start of a block and that is
>> not always possible.
>>
>
> Agreed. Not always possible or always a good thing. And a style question
> is do you allow variables to be defined in sub scopes? In C++, the answer
> is usually to keep things as tight/narrow as possible.
In C too, but since C99.
Best regards,
--
Mateusz Loskot, http://mateusz.loskot.net
More information about the Proj
mailing list