in reply to Re^3: Shouldn't references be readonly? (updated)
in thread Shouldn't LITERAL references be readonly? (updated)
Ok, I'd like to contradict myself.
I'd actually be ok with making "unassigned" scalars read-only. That includes [...], $x.$y, <>, etc.
It might have performance implications, but they should be extremely tiny.
It would break some code (such as my @lines = map { chomp; } <>;), but I think the benefits might be larger.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^5: Shouldn't references be readonly? (updated)
by LanX (Saint) on Aug 07, 2020 at 10:34 UTC | |
by ikegami (Patriarch) on Aug 07, 2020 at 19:54 UTC | |
by LanX (Saint) on Aug 08, 2020 at 01:17 UTC | |
by ikegami (Patriarch) on Aug 09, 2020 at 06:55 UTC | |
by ikegami (Patriarch) on Aug 09, 2020 at 07:12 UTC | |
by LanX (Saint) on Aug 09, 2020 at 12:46 UTC | |
|
In Section
Seekers of Perl Wisdom