New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"Truth and Falsehood" doesn't belong in perlsyn #12538
Comments
From @maukeCreated by @maukeperldoc perlsyn includes this section: | Truth and Falsehood I don't think this belongs in perlsyn. Truthiness is a property of values, not That is, '()' and 'undef' are simply two particular spellings of the value The part about negation yielding a dualvar for false isn't really a syntactic Thoughts? Perl Info
|
From bmb@Mail.Libs.UGA.EDUOn 11/9/12, l.mai@web.de (via RT) <perlbug-followup@perl.org> wrote:
It think this is a helpful location for folks coming from other
Huh? :-)
I think the comprehensive statements, 'The number 0, the strings '0' -- |
The RT System itself - Status changed from 'new' to 'open' |
From @ikegamiOn Fri, Nov 9, 2012 at 2:18 PM, Brad Baxter <bmb@mail.libs.uga.edu> wrote:
languages where there are 'true' and 'false' syntactic elements. That doesn't change anything. Syntactic elements relating to variables are
If you by "()" you mean the operator that returns undef or an empty list: Either way you look at it, "()" doesn't belong there. |
From Eirik-Berg.Hanssen@allverden.noOn Fri, Nov 9, 2012 at 9:03 PM, Eric Brine <ikegami@adaelis.com> wrote:
... in a scalar context, yes, of which boolean is one, right?
I think I'm most annoyed that it calls is "the empty list". It Either way, yes, please do away with it. $ perl -MData::Dump=pp -e 'sub nil { +() } pp do { nil }; pp do { if (nil) Eirik |
From zefram@fysh.orgDone in commit 77fae43. -zefram |
@xsawyerx - Status changed from 'open' to 'pending release' |
From @khwilliamsonThank you for filing this report. You have helped make Perl better. With the release yesterday of Perl 5.28.0, this and 185 other issues have been Perl 5.28.0 may be downloaded via: If you find that the problem persists, feel free to reopen this ticket. |
@khwilliamson - Status changed from 'pending release' to 'resolved' |
Migrated from rt.perl.org#115650 (status was 'resolved')
Searchable as RT115650$
The text was updated successfully, but these errors were encountered: