develooper Front page | perl.perl5.porters | Postings from May 2021

Re: C99

Thread Previous
From:
hv
Date:
May 18, 2021 12:46
Subject:
Re: C99
Message ID:
202105181216.14ICGiP06111@crypt.org
Nicholas Clark <nick@ccl4.org> wrote:
:Feature:     mixed declarations and code
:Benefit:     Can directly reduce line count without reducing readability,
:             Can indirectly make it easier to use const
:Hindered by: 
:Work around: 

We use a lot of macros, some of which introduce declarations; it would make
life a lot easier (and save on a lot of grepping) if you didn't need to know
every macro's expansion to know when you can place a declaration after them,
or a statement before them. We work around that with naming conventions
(not sure how consistently), but that makes it yet another barrier to entry
for new core developers.

:Feature:     // comments
:Benefit:     
:Hindered by: 
:Work around: 

Work around: /* ... */

More generally: I don't tend to touch XS, so it isn't obvious to me how
much this discussion affects XS developers. It's probably worth adding
a comment about that, either globally or against each feature.

Hugo

Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About