Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion More on slices and iterators
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Dan Sugalski  
View profile  
 More options Jun 15 2004, 12:57 pm
Newsgroups: perl.perl6.internals
From: d...@sidhe.org (Dan Sugalski)
Date: Tue, 15 Jun 2004 12:57:13 -0400
Local: Tues, Jun 15 2004 12:57 pm
Subject: More on slices and iterators
Okay, before we go any further, I think it's important to note that
we're going to restrict ourselves to unidimensional slices for the
time being. Yes, I know, we probably need to deal with
multidimensional slices at some point (and I say probably since there
are quite a number of different ways to specify and iterate over
multidimensional slices--I don't think there'll be any one true way
for those, which makes me think perhaps slices aren't the way to go
there) but for now unidimensional slices are enough of an issue.

I can see the point of having each list element of a slice being an
iterator rather than a set of discreet start/end pairs. That'd be
handy in some cases, and avoid having the perl 6 compiler having to
construct iterators by hand rather with slices. (On the other hand,
I'm perfectly fine with that, too)

So, given that, should plain scalars act as iterators holding a
single value and implement the iterator protocol? That'd make slice
implementation easier, but there's that whole nasty complexity thing
there. (Though without it there's the issue of complexity
elsewhere--no real win here, just a matter of deciding where to lose
less)
--
                                Dan

--------------------------------------it's like this-------------------
Dan Sugalski                          even samurai
d...@sidhe.org                         have teddy bears and even
                                       teddy bears get drunk


 
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.