http://qs321.pair.com?node_id=11120367


in reply to Re^7: Shouldn't references be readonly? (updated)
in thread Shouldn't LITERAL references be readonly? (updated)

> But regardless of that, there is still the question of whether the reference returned by [] and {} should be marked readonly. I suppose it could be but Larry never thought to do so,

Thanks, at least someone beside Hauke who is not trying to convince me that the issue doesn't exist at all. \o/

> and there doesn't seem any point in changing it now.

Well ... catching errors would be an issue, don't you think?

But like always with old errors, I wouldn't surprised if they became "features".

After changing, some CPAN modules might break because they did something like

sub func { $_[0] //= { the_default => "values" }; ... }

which is a broken approach to default values ...

Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery