in reply to Re^4: Stop Using Perl
in thread Stop Using Perl

update

FWIW:

a new feature allowing to change => from "fat comma" to a kind of "pair operator" wouldn't effect Moose's has() w/o parens.

DB<105> sub has { \@_} DB<106> has pizza => scalar is => scalar 'ro' => ["pizza", "is", "ro"]

It's scalar(CODE) which enforces a scalar comma within CODE to only return the last element.

DB<107> has pizza => scalar ( is => scalar 'ro', ); => ["pizza", "ro"]

OTOH a changed => doesn't necessarily need to act like a scalar comma.

Cheers Rolf

(addicted to the Perl Programming Language and ☆☆☆☆ :)

Replies are listed 'Best First'.
Re^6: Stop Using Perl
by Anonymous Monk on Jan 02, 2015 at 07:50 UTC
    In other words, fat comma and regular comma would behave differently with regard to parens. No thanks.