Hi Juerd,
[Quoting Juerd, on February 5 2005, 16:57, in "CLI signature?"]
> signature (
> Rule $pattern,
> bool +$help:short('h'),
> Int +$verbose :short('v'),
> Str [EMAIL PROTECTED] = <->
> );
Ingo Blechschmidt skribis 2005-02-05 18:52 (+0100):
> signature(...) looks like a function/sub call, while it isn't one
> really.
Macros can do this to a language :)
macro signature is parsed /;/ { ... }
> Maybe it should be possible to create Signature objects without
> creating a sub
That
Hi,
Juerd wrote:
> Ingo Blechschmidt skribis 2005-02-05 17:19 (+0100):
>> ...this seems a bit ugly to me.
>
> The "signature" part, or the signature itself? Because you'll
> encounter lists like this all over Perl 6 code anyway...
I refered to the way the signature is specified, not the signatur
Ingo Blechschmidt skribis 2005-02-05 17:19 (+0100):
> ...this seems a bit ugly to me.
The "signature" part, or the signature itself? Because you'll encounter
lists like this all over Perl 6 code anyway...
> What do you say about that:
> use Getopt::Auto;
> run &main;
> sub main (
>Rule $pa
Matthew Walton skribis 2005-02-05 16:20 (+):
> Would this actually be any better than the interface provided by
> Getopt::Long?
I'm not sure if it's *better*. I personally find it easier to read and
much easier to remember.
It would reduce the number of mini languages needed. Passing argumen
Hi,
Juerd wrote:
> This probably goes against everything a shell based platform wants,
> but would it be possible to give the program a sub-like signature?
I like that idea very much, but...
> signature (
> Rule $pattern,
> bool +$help:short('h'),
> Int +$verbos
Juerd wrote:
This probably goes against everything a shell based platform wants, but
would it be possible to give the program a sub-like signature?
I ask this after another painful session of forgetting how things
work, reading Getopt::Long's documentation.
signature (
Rule $pattern,
This probably goes against everything a shell based platform wants, but
would it be possible to give the program a sub-like signature?
I ask this after another painful session of forgetting how things
work, reading Getopt::Long's documentation.
signature (
Rule $pattern,
bool