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

Re: C99

Thread Previous
May 18, 2021 12:46
Re: C99
Message ID:
Nicholas Clark <> 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
: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.


Thread Previous Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About