in reply to Re^6: Shouldn't references be readonly? (updated)
in thread Shouldn't LITERAL references be readonly? (updated)
All I can say is that I personally strongly disagree with your use of term "literal" in this context, and I think that any attempt to draw an analogy between 1 and 1 is specious. The former is a literal value appearing in the source code and used as a compile-time constant. The latter is a run-time list constructor.
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, and there doesn't seem any point in changing it now.
Dave.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^8: Shouldn't references be readonly? (updated)
by LanX (Saint) on Aug 05, 2020 at 21:41 UTC | |
Re^8: Shouldn't references be readonly? (updated)
by LanX (Saint) on Aug 05, 2020 at 21:35 UTC | |
by dave_the_m (Monsignor) on Aug 06, 2020 at 08:51 UTC | |
by LanX (Saint) on Aug 06, 2020 at 12:26 UTC | |
by chromatic (Archbishop) on Aug 06, 2020 at 00:41 UTC | |
by LanX (Saint) on Aug 06, 2020 at 01:35 UTC | |
by chromatic (Archbishop) on Aug 06, 2020 at 05:26 UTC | |
by LanX (Saint) on Aug 06, 2020 at 11:57 UTC |
In Section
Seekers of Perl Wisdom