in reply to Re^8: Shouldn't references be readonly? (updated)
in thread Shouldn't LITERAL references be readonly? (updated)
A transformation of a string or a number into another string or number is common, BUT the transformation of refs is impossible.
Hence it's far more likely that legacy code will break if something like $_++ became illegal for an aliased input like 3+4 .
Same code for refs wouldn't make sense at all.
I can't come up with more intuitive examples, but I'm sure those exist.
Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^10: Shouldn't references be readonly? (updated)
by ikegami (Patriarch) on Aug 09, 2020 at 21:19 UTC | |
by Corion (Patriarch) on Aug 10, 2020 at 06:08 UTC | |
by ikegami (Patriarch) on Aug 11, 2020 at 10:39 UTC | |
by LanX (Saint) on Aug 11, 2020 at 15:13 UTC | |
|
Re^10: Shouldn't references be readonly? (updated)
by ikegami (Patriarch) on Aug 09, 2020 at 21:07 UTC | |
by LanX (Saint) on Aug 09, 2020 at 23:45 UTC |