avenj / list-objects-withutils

List::Objects::WithUtils
4 stars 3 forks source link

Tied typed array #2

Closed tobyink closed 11 years ago

tobyink commented 11 years ago

This introduces an extra dependency (Type::Tie, which itself has a dependency on Hash::FieldHash), so I'd certainly understand if you didn't want to accept it.

However, I think it has some advantages over the current typed array implementation:

my $arr = array_of(Int, 0..99);
$arr->push(0..9) for 0..99
avenj commented 11 years ago

Very cool! Good enough reason to add the extra deps, in my opinion. Thanks!