in reply to Re: Re: Noble DOT vs the Allmighty ARROW
in thread Noble DOT vs the Allmighty ARROW

Just think of how much this is going to cost in terms of Perl Golf characters. At the same time, though, aren't they running out of punctuation-type character operators found on the regular 104-key keyboard?

It is odd that period is used as an operator at all, really. Syntax wise, the fact that a scalar is both a string and a number complicates things somewhat. Still, why not something more abstract? Here's some useless ideas:
$foo = $bar:$nuu; # Currently meaningless $foo = $bar'$nu; # Ye-olde ' operator? $foo = $bar<->$nu; # Maybe? $foo = $bar$nu; # Or nothing at all? $foo = $bar $nu; # Implied? $foo = $bar~$nu; # Getting kind of crazy with overloading
Still, this "space underscore space" stuff smells of Python-like schenannigans.

I'm half-inclined to start a campaign to develop an alternative.

Replies are listed 'Best First'.
Re: Re^3: Noble DOT vs the Allmighty ARROW
by cowens (Beadle) on May 09, 2002 at 18:37 UTC
    $foo = $bar:$nuu;    # Currently meaningless
    I really don't want to have to try and parse
    $concated = $x < $y ? $x:$y : $y:$x;
    I think the ' _ ' operator is ugly, but not that bad. In general I don't think there will be much call for it in the future since we will be able to say things like
    $string = "for $x + $y the answer is $($x+$y)\n";
    instead of
    $string = "for $x + $y the answer is " . ($x+$y) . "\n";