| To: | perl6-language@perl.org |
|---|---|
| Subject: | Re: Allowing '-' in identifiers: what's the motivation? |
| From: | Austin Hastings <Austin_Hastings@Yahoo.com> |
| Date: | Sun, 10 Aug 2008 22:46:05 -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 |
| Domainkey-signature: | a=rsa-sha1; q=dns; c=nofws; s=s1024; d=Yahoo.com; h=Received:X-YMail-OSG:X-Yahoo-Newman-Property:Message-ID:Date:From:Reply-To:Organization:User-Agent:MIME-Version:To:Subject:References:In-Reply-To:Content-Type:Content-Transfer-Encoding; b=aZdKFOwnNPNIS8J8I9LGigJNaUYglAk8iDBetlcL3z+AFoFWlfQzntoabaGBkg8hlciAOa6IYvuWE/DQcMMUklN6oVNX06OxeOAy9Va221h5IaqW9kPpd1Wwd08f8Na2OCstxj3lTIx1PswLtBlFzhpSGLDlFEgkwt4jL+A3hzM= ; |
| In-reply-to: | <31238-20726@sneakemail.com> |
| 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 |
| Organization: | Longacre, Inc. |
| References: | <31238-20726@sneakemail.com> |
| Reply-to: | Austin_Hastings@Yahoo.com |
| User-agent: | Thunderbird 2.0.0.16 (Windows/20080708) |
At a minimum, there are more multi-word identifiers than there are
statements involving subtraction. Further, '-' is basic, while all of
[_A-Z] are not.
Ergo, a multi-word-identifier is easier to type than a multi_word_identifier or a multiWordIdentifier. The older I get, the more I like Cobol, and now *ML, for getting this stuff right. =Austin John M. Dlugosz wrote: 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> |
|---|---|---|
| ||
| Previous by Date: | Allowing '-' in identifiers: what's the motivation?, John M. Dlugosz |
|---|---|
| Next by Date: | Re: Some details of function return captures, John M. Dlugosz |
| Previous by Thread: | Allowing '-' in identifiers: what's the motivation?, John M. Dlugosz |
| Next by Thread: | Re: Allowing '-' in identifiers: what's the motivation?, Aristotle Pagaltzis |
| Indexes: | [Date] [Thread] [Top] [All Lists] |