develooper Front page | perl.perl6.language | Postings from December 2004

Re: Required whitespace issues.

Thread Previous | Thread Next
From:
Rod Adams
Date:
December 4, 2004 18:53
Subject:
Re: Required whitespace issues.
Message ID:
41B27884.8090100@rodadams.net
Larry Wall wrote:

>On Sat, Dec 04, 2004 at 08:14:17PM -0600, Rod Adams wrote:
>: In fact, unary = imposes whitespace requirements on all ops that end in =.
>
>Not true.
>
I guess not all cases.  But several do in certain situations.

$x ==<$foo>;   # $x == <$foo>;   $x = =<$foo>;
@x <==<$foo>;  # @x <= =<$foo>;  @x <== <$foo>;
$x//=<$foo>;   # $x // =<$foo>;  $x //= <$foo>;
$x**=@y;       # $x ** =@y;      $x **= @y;


Enough to make my overall issue of "an increasing number of operators 
are acquiring whitespace requirements" valid. If I'm not mistaken, \S<\S 
is invalid, but \S>\S is valid.

The rest of my post can be summarized as "A consistent set of rules 
about when whitespace is and is not allowed are in order."

-- Rod Adams







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