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 Arrays vs. Lists

Newsgroups: perl.perl6.language
Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!nntp.perl.org
Return-Path: <d...@whipp.name>
Mailing-List: contact perl6-language-h...@perl.org; run by ezmlm
Delivered-To: mailing list perl6-langu...@perl.org
Message-ID: <20030207235654.7118.qmail@onion.perl.org>
To: perl6-langu...@perl.org
References: <x7r8ajg2ww.fsf@mail.sysarch.com> <04336C89-3AEE-11D7-B6E4-00050245244A@cognitivity.com>
Subject: Re: Arrays vs. Lists
Date: Fri, 7 Feb 2003 15:57:41 -0800
Lines: 18
Organization: Fast-Chip inc.
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4920.2300
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4920.2300
X-Posted-By: 64.161.209.178
Approved: n...@nntp.perl.org
From: d...@whipp.name (Dave Whipp)

"Michael Lazzaro" <mlazz...@cognitivity.com> wrote in message
news:04336C89-3AEE-11D7-B6E4-00050245244A@cognitivity.com...
> Along those lines, the closest I've been able to come so far to a
> usable two-sentence definition is:
>
> -- A list is an ordered set of scalar values.

quibble: that's an "ordered bag", isn't it?  ;)

> -- An array is an object that stores a list.

My phrasing of the distinction is that a list is a lexical entity,
whilst an array is a variable.

Anonymous array constructors are just special syntax for
passing a list to an array (or Array) constructor.