Newsgroups: perl.perl6.language
From: debb...@mail.csse.monash.edu.au (Deborah Ariel Pickett)
Date: Tue, 11 Feb 2003 11:15:13 +1100 (EST)
Local: Mon, Feb 10 2003 7:15 pm
Subject: Re: Arrays vs. Lists
> >While I like the glib "Arrays are variables that hold lists" explanation Well, like the builtin switch statement, which was what I was trying to > >that worked so well in Perl5, I think that Perl6 is introducing some > >changes to this that make this less true. > Like what? show in my bad example below. What I meant was: In Perl5, pretty much anywhere you have a list, you @a = (1, 2, 3); The exceptions appear to be builtin operators like C<push>, In Perl6, where there seems to be even more of a blur between Perhaps this just adds the switch statement to the set of Perl (This suggests to me that it won't be possible to implement the switch It also appears that we'll now be able to pass multiple arrays to (Just going off on a tangent: Is it true that an array slice such as > >For instance, the switch See above. > >statement has different rules for lists and arrays. So these don't > >necessarily do exactly the same thing in Perl6: > > # Please excuse syntax errors here, but you know what I mean > >and > > @a = (1, 2, 3); > I don't understand the difference here. Could you elaborate? > >Would there be any truth in this distinction: What joy I'll have explaining that one to my students . . . > >- lists are ordered sets/bags/etc seen by the Perl parser > >- arrays are ordered sets/bags/etc seen by the Perl interpreter > >? > Where s/parser/compiler/, and s/interpretter/runtime engine/? I -- 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.
| ||||||||||||||