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

Re: Announcing Perl 7

Thread Previous | Thread Next
Paul "LeoNerd" Evans
June 28, 2020 07:38
Re: Announcing Perl 7
Message ID:
On Sat, 27 Jun 2020 12:18:30 +0100
"Paul \"LeoNerd\" Evans" <> wrote:

> Plus a "use v7" at the top of a file will be a BIG HINT to things like
> Github syntax highlighting, vim/emacs/other editors and IDEs ... so
> many places, that they should pick syntax highlighting relevant to
> Perl 7, not Perl 5.

Also to perltidy/perlcritic/etc...

Right now perltidy makes a huge mess of interesting syntax modules,
such as Syntax::Keyword::Try, because it doesn't realise the trailing
";" is not required on try/catch syntax.

perltidy's output looks something like

  sub f {
    try {
    catch {
    } return "result";

Oops. Wrong. Should be

    catch {
    return "result";

If `try` syntax becomes default - probably not in 7 but maybe in 8 -
then how is perltidy going to know how to properly format and indent
this, and all the other exciting syntax we hope to have in place by 8?

Paul "LeoNerd" Evans      |  |

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