develooper Front page | perl.perl5.porters | Postings from July 2020

Re: Announcing Perl 7

Thread Previous | Thread Next
From:
Paul "LeoNerd" Evans
Date:
July 3, 2020 18:33
Subject:
Re: Announcing Perl 7
Message ID:
20200703193315.4089bacc@shy.leonerd.org.uk
On Fri, 3 Jul 2020 11:29:46 -0700
Scott Baker <scott@perturb.org> wrote:

> As far as I know no other language requires you to *opt in *to latest 
> version like this. Certainly not the languages I play in: C, C++, 
> Python, PHP, Javascript.

I respectfully beg to differ, at least on the C front.

C compilers are well known to be notoriously conservative; you are
often stuck with C89 features unless you ask on the commandline to get
C99 or maybe if you are extremely lucky, you might be allowed C11.

And compilers differ on what the commandline flags might be - maybe
it's -std=c99 for gcc; but that might not be the case for all the weird
UNIX ones. It's a total mess.

As an often-C programmer I would dearly love to have the "use VERSION"
mechanism in C as well. How wonderful I would find it to be able to

  use C11;

at the top of my .c files, and know that any C compiler will understand
what I mean.

Perl has a great mechanism in "use VERSION" - I don't want to see it go
to waste.

-- 
Paul "LeoNerd" Evans

leonerd@leonerd.org.uk      |  https://metacpan.org/author/PEVANS
http://www.leonerd.org.uk/  |  https://www.tindie.com/stores/leonerd/

Thread Previous | Thread Next


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