On Wednesday 01 December 2004 10:04 am, Dan Sugalski wrote:
<>
> And yeah, I'm throwing perl in here because it has what is reasonably
> considered a bizarre type system (it doesn't have integers or strings
> as types. It has "singular thing", "aggregate thing accessed via
> integer offset", and "aggregate thing accessed by name" as types,
> with a lot of autoconversion and context sensitive behaviour to give
> people's brains a twist) but it's still a strong one -- you're just
> not allowed to violate it.
<>

I've always thought of Perl5 having two basic types: Scalar and List, with 
Hash and Array being subtypes of List.  The reason is that arrays and hashes 
can be easily converted into each other, because of Perl5's list-flatening 
nature:

@array = %hash;
%hash = @array;

The result may or may not be useful, but Perl will let you get away with it, 
since they're really just lists with different means of indexing.

Attachment: pgph0yPi6ilXE.pgp
Description: PGP signature

Reply via email to