develooper Front page | perl.perl6.users | Postings from September 2019

more unixish perl6?

Thread Previous | Thread Next
From:
Marc Chantreux
Date:
September 24, 2019 07:50
Subject:
more unixish perl6?
Message ID:
20190924075006.GC9945@prometheus.u-strasbg.fr
hello,

i don't know if it's useful to feedback on it but i would like to share
about MAIN.

this is a very nice thing to have it built-in so the quality of your
scripts can be improved without effort ($*USAGE is very nice!) but
here are some parts i feel i miss.

* dealing with $*ARGFILES should be simpler (something like the closing @ in
  perl5 signatures)
* a support of arguments cluster would be (both '-s -d +' and  '-sd+' should be valid)
* having something like auto-help that print $*USAGE on $*OUT

  multi sub MAIN ( Bool :h(:$help), +@rest ) { $*USAGE.say }

aside: the perl6 error messages comes with escape caracters even if $*ERR isn't tty.
this is unusual and makes things boring when you capture the error into
an editor or a filter. i don't know if it can be useful in some cases.

regards
marc

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