Message from discussion
Perl6 Operator List, Take 5
Newsgroups: perl.perl6.language
Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!nntp.perl.org
Return-Path: <brent...@cpan.org>
Mailing-List: contact perl6-language-h...@perl.org; run by ezmlm
Delivered-To: mailing list perl6-langu...@perl.org
To: "'Larry Wall'" <la...@wall.org>, "'David Whipp'" <david_wh...@fast-chip.com>
Cc: <perl6-langu...@perl.org>
Subject: RE: [RFC] Perl6 Operator List, Take 5
Date: Tue, 29 Oct 2002 23:23:21 -0800
Message-ID: <006d01c27fe5$3a829570$6501a8c0@deepblue>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook, Build 10.0.2616
Importance: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
In-Reply-To: <Pine.LNX.4.44.0210292139270.29798-100000@london.wall.org>
X-SMTPD: qpsmtpd/0.12, http://develooper.com/code/qpsmtpd/
Approved: n...@nntp.perl.org
From: brent...@cpan.org (Brent Dax)
References: <Pine.LNX.4.44.0210292139270.29798-100000@london.wall.org>
Lines: 36
Larry Wall:
# Of course, Real Mathematicians will want [1..10) and (1..10] instead.
#=20
# Double ick.
Reminds me of the number-line notation you learn about *before*
precalculus (or whatever the value of
$you.schooling.grade[12].class{math}.name is) confuses everything, with
open vs. closed circles on a number line. How about:
1 oo 10 # (1, 10)
1 o. 10 # (1, 10]
1 .o 10 # [1, 10)
1 .. 10 # [1, 10]
(The scary part is that I'm not sure I'm joking any more...)
# There's also an issue of what (1..10) - 1 would or should=20
# mean, if anything. Does it mean (1..9)? Does 1 + (1..10)=20
# mean (2..10)?
#=20
# And what would ('a' .. 'z') - 1 mean?
Er, I would hope that it would be the same as scalar('a' .. 'z') - 1, or
['a' .. 'z'] - 1, or +['a' .. 'z'] - 1, or 26 - 1, or 25. But that
wouldn't be weird enough, I suppose--it's looking like Perl 6 will be
the official language of *The Matrix*. Free your mind! :^)
--Brent Dax <brent...@cpan.org>
@roles=3Dmap {"Parrot $_"} qw(embedding regexen Configure)
Wire telegraph is a kind of a very, very long cat. You pull his tail in
New York and his head is meowing in Los Angeles. And radio operates
exactly the same way. The only difference is that there is no cat.
--Albert Einstein (explaining radio)