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

more unixish perl6?

Thread Previous | Thread Next
Marc Chantreux
September 24, 2019 07:50
more unixish perl6?
Message ID:

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.


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