in reply to the 'dot dot dot' operator

How about instead of () you insert die("Deferred implementation can't be executed");.

Replies are listed 'Best First'.
Re: Re: the 'dot dot dot' operator
by broquaint (Abbot) on Apr 14, 2003 at 14:21 UTC
    How about instead of () you insert die("Deferred implementation can't be executed");.
    Perhaps, but when I used it I just wanted a placeholder, not necessarily an abstract op (yes, I made that up ;) and I also have no idea how it will be implemented in perl6 (it may be described in p6l ... somewhere). Maybe we need YAO instead
    package bangbangbang; use Filter::Simple; FILTER_ONLY code => sub { s{ \s \Q!!!\E \s } { die("Deferred implementation can't be executed"); }gx }; q[ ichi ni san ];
    And obligatory example usage
    use bangbangbang; sub foo { !!! } my $bar = sub { !!! }; sub baz { return !!! } eval { foo() } or warn "foo() - $@"; eval { &$bar() } or warn "bar() - $@"; eval { baz() } or warn "baz() - $@"; __output__ foo() - Deferred implementation can't be executed at bbb_test.pl line +3. bar() - Deferred implementation can't be executed at bbb_test.pl line +4. baz() - Deferred implementation can't be executed at bbb_test.pl line +5.

    HTH

    _________
    broquaint

      It occurs to me that I dislike bang-bang-bang because that conflicts with the common idiom bang-bang to booleanize something. Also, I recall dot-dot-dot being proposed elsewhere as a fatal op which on being executed warns that something wasn't complete and it shouldn't have been executed.

        'booleanize' is the word I was looking for yesterday while reading through the Camel. The authors had said something about not wanting to use the word 'boolification'.