in reply to Re^2: Reason for this discrepancy with scalar?
in thread Reason for this discrepancy with scalar?
2 questions tho:
Yeah, but I was under the impression the patch was supposed to improve Boolean context. And several sources claim that Perl is internally subdividing scalar context into Boolean, string and (various) numeric contexts.
What some programmers seem to expect is that the initial type (i.e. at time of assignment) is preserved.
Was it ever discussed to add a flag "initial_type" to scalar vars, which ...
...???
And if it was already discussed, what are the reasons against?
Cheers Rolf
(addicted to the Perl Programming Language :)
see Wikisyntax for the Monastery
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Reason for this discrepancy with scalar?
by dave_the_m (Monsignor) on Mar 15, 2024 at 22:28 UTC | |
by LanX (Saint) on Mar 16, 2024 at 00:19 UTC | |
by dave_the_m (Monsignor) on Mar 16, 2024 at 16:31 UTC | |
by LanX (Saint) on Mar 16, 2024 at 17:03 UTC | |
by dave_the_m (Monsignor) on Mar 16, 2024 at 17:35 UTC | |
|