develooper Front page | perl.perl6.language | Postings from July 2006

Re: Containers

Thread Previous | Thread Next
From:
Jordan Kanter
Date:
July 11, 2006 08:53
Subject:
Re: Containers
Message ID:
fefec9390607110728n29c071a8nb047e625ea281036@mail.gmail.com
I was having that problem too going over S09.  It seems like we need to get
the glossary together like Uri was saying that we can have a controlled
language for creating the documents.  If we dont have one already, I suggest
we start one.

Jordan

On 7/11/06, Aaron Sherman <ajs@ajs.com> wrote:
>
> S02 and S06 discuss containers quite a bit. They say things like:
>
>         "The is NAME (DATA) syntax defines traits on containers and
>         subroutines" -S06
>
>         "A variable object may itself be bound to a container type that
>         specifies how the container works without necessarily specifying
>         what kinds of things it contains." -S02
>
> >From this, I gather that it is our intention that containers have common
> behaviors. In working on the Functions document (nominally S29), I've
> come across some functions (such as C<each>, defined in S03), which are
> not tied to specific container types, and probably want to be defined in
> terms of the common container class.
>
> Is it OK for me to arm-wave a C<Container> class which can stand in for
> any container type? For example:
>
> our List multi Container::each(Container *@containers)
>
> Thoughts? Bad plan? I understand that there's some ambiguity here... it
> might even be that Container is a role, not a class, or might be an
> arm-wavy thing that abstracts some implementation details. I'm not
> concerned about that just yet, I just need something to call these
> things. Otherwise I have to put one definition for each of these
> functions into the section for each type of container (too many
> eaches...). I don't even have a section for things like Seq and Buf yet,
> and I'd rather not if I don't have to.
>
> --
> Aaron Sherman <ajs@ajs.com>
> Senior Systems Engineer and Toolsmith
> "We had some good machines, but they don't work no more." -Shriekback
>
>
>

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About