Newsgroups: perl.perl6.language
From: la...@wall.org (Larry Wall)
Date: Tue, 29 Oct 2002 22:29:26 -0800 (PST)
Local: Wed, Oct 30 2002 1:29 am
Subject: RE: [RFC] Perl6 Operator List, Take 5
On Tue, 29 Oct 2002, David Whipp wrote: : Larry Wall [mailto:la...@wall.org] wrote: : > : unary (postfix) operators: : > : ... - [maybe] same as ..Inf [Damian votes Yes] : > : > I wonder if we can possibly get the Rubyesque leaving out of : > endpoints by saying something like 1..!10. : : Perhaps we could use the less-than symbol: 1 ..< 10 : : Similarly: 1 >..< 10 == 2..9 That front one is backwards--it would have to be 1 <..< 10. But the biggest problem is that 1..<$iterator> is valid syntax. Of course, ..! and ..^ have the same problem. But it just seems like 1..<$iterator> + 1; but wrongly as 1 ..< $iterator > +1; Ick. Of course, Real Mathematicians will want [1..10) and (1..10] instead. Double ick. I kind like ..^ the best because ^ is currently read "exclusive of" And the arrow can be read "up to", at least on that end of it. I think There's also an issue of what (1..10) - 1 would or should mean, if anything. And what would ('a' .. 'z') - 1 mean? I think I'd better go to bed now... Larry You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||