Re:Why Perl Didn't Win
by EdwardDiego on Monday June 09, 2014 @06:38AM
(#7867774)
> it's two concepts: "collection", and "pointer to collection". I guess coming from C that didn't bother me too much
Fair point. I guess what bugs me is that you can use collections merrily without references until you want to pass more than one collection to a function - or create a collection that isn't flattened - at which point you have no choice.
It's not really two sets of sigils, it's two concepts: "collection", and "pointer to collection". I guess coming from C that didn't bother me too much—once it sunk that references were just (safe) pointers, using them works almost exactly the same:
Perl even stole C's pointer syntax to make working with collections nice: