perl6-language
[Top] [All Lists]

Allowing '-' in identifiers: what's the motivation?

To: perl6-language@perl.org
Subject: Allowing '-' in identifiers: what's the motivation?
From: "John M. Dlugosz" <dhcgnd702@sneakemail.com>
Date: Sun, 10 Aug 2008 22:35:03 -0500
Delivered-to: mailing list perl6-all@perl.org
Delivered-to: perl6-all-poster@perl.org
Delivered-to: mailing list perl6-language@perl.org
Delivered-to: perl6-language@perl.org
List-help: <mailto:perl6-all-help@perl.org>
List-id: <perl6-all.perl.org>
List-id: <perl6-language.perl.org>
List-post: <mailto:perl6-all@perl.org>
List-subscribe: <mailto:perl6-all-subscribe@perl.org>
List-unsubscribe: <mailto:perl6-all-unsubscribe@perl.org>
Mailing-list: contact perl6-all-help@perl.org; run by ezmlm
User-agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.8.1.16) Gecko/20080708 Thunderbird/2.0.0.16 Mnenhy/0.7.5.666
E.g. see <http://www.perlmonks.org/?node_id=703265> :

sub bar {
    return 100;
}
sub foo { 50;}
sub foo-bar {
  return  rand(50);
  }
if (foo - bar != foo-bar) {
  print "Haha!\n";
}


<Prev in Thread] Current Thread [Next in Thread>