Skip Menu |

This queue is for tickets about the Boolean-Testing-TrueFalse CPAN distribution.

Report information
The Basics
Id: 81919
Status: open
Priority: 0/
Queue: Boolean-Testing-TrueFalse

People
Owner: Nobody in particular
Requestors: uri [...] sysarch.com
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: (no value)
Fixed in: (no value)



this is a strange module. the true() sub will return 3 different true values ('t', 'T' and 'True'). it thinks '#' is false but doesn't handle undef or ''. if you pass in no args it returns 'True'. under what boolean rules does this make any sense? also the author has been very childish and belegerant in his rt replies. i expect the same here. his modules are very broken, provide no use to anyone but the author and are just cpan clutter. there are also duplicate modules with the same code and different namespaces.
Subject: Addressing concerns and making amends
On Wed Dec 12 02:51:19 2012, URI wrote: Show quoted text
> this is a strange module. the true() sub will return 3 different true > values ('t', 'T' and 'True'). it thinks '#' is > false but doesn't handle undef or ''. if you pass in no args it returns > 'True'. under what boolean rules does this make any sense? > > also the author has been very childish and belegerant in his rt > replies. i expect the same here. his modules are very broken, provide no > use to anyone but the author and are just cpan clutter. there are also > duplicate modules with the same code and different namespaces.
The idea behind the different possible parameters is to allow users more freedom with syntax. So that if they really can't stand writing out the entire word 'True' that they can just use 't' instead. Technically, any variable that has at least some values is true in Perl, or at lesat this is what I've seen so far in my experiences with args, so it really doesn't matter what the function returns so long as it returns something. My apologizes about the rt replies, it was wrong of me to be so belegerant and childish. My modules are also very new and I'm very new at this; I would appreciate a some patience and lee-way. A lot of the modules that I uploaded, if not all of them are currently flagged for deletion, but CPAN won't delete them till like Saturday, which is annoying I know. I'm also still trying to get the hang of the namespaces, and since I learn best by just jumping in and working with what I'm trying to learn I figured that just putting some moduels on CPAN would be the best way to [A] learn how to use CPAN and [B] learn how to write perl modules.
On Wed Dec 12 03:20:56 2012, PERLOOK wrote: Show quoted text
> Technically, any variable that has at least some values is true
Uh, no. What about 0, or the string '0E0'? These are both values that are false.
Subject: Re: [rt.cpan.org #81919]
Date: Thu, 13 Dec 2012 13:30:54 -0500
To: bug-Boolean-Testing-TrueFalse [...] rt.cpan.org
From: Alexej Magura <perlook [...] cpan.org>
I stand corrected. On Thu, Dec 13, 2012 at 12:53 PM, Nick Logan via RT < bug-Boolean-Testing-TrueFalse@rt.cpan.org> wrote: Show quoted text
> Queue: Boolean-Testing-TrueFalse > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=81919 > > > On Wed Dec 12 03:20:56 2012, PERLOOK wrote:
> > Technically, any variable that has at least some values is true
> Uh, no. What about 0, or the string '0E0'? These are both values that are > false. >
Subject: Re: [rt.cpan.org #81919]
Date: Thu, 13 Dec 2012 15:58:02 -0500
To: bug-Boolean-Testing-TrueFalse [...] rt.cpan.org
From: uri [...] sysarch.com
On 12/13/2012 12:53 PM, Nick Logan via RT wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=81919 > > > On Wed Dec 12 03:20:56 2012, PERLOOK wrote:
>> Technically, any variable that has at least some values is true
> Uh, no. What about 0, or the string '0E0'? These are both values that are > false. > >
actually the string '0E0' is true. the only false values in perl are undef, '', 0 (the number) and '0' (a string). ALL other values are true. the point really to be made is that no one creates boolean values and tests in perl since you don't need any. all of perl's boolean tests work fine and you won't find any special code for them. uri
Subject: Re: [rt.cpan.org #81919]
Date: Sat, 15 Dec 2012 02:48:12 -0500
To: bug-Boolean-Testing-TrueFalse [...] rt.cpan.org
From: Alexej Magura <perlook [...] cpan.org>
Good point; that still doesn't change the fact that I'm going to continue working on this module. On Thu, Dec 13, 2012 at 3:58 PM, Uri Guttman via RT < bug-Boolean-Testing-TrueFalse@rt.cpan.org> wrote: Show quoted text
> Queue: Boolean-Testing-TrueFalse > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=81919 > > > On 12/13/2012 12:53 PM, Nick Logan via RT wrote:
> > <URL: https://rt.cpan.org/Ticket/Display.html?id=81919 > > > > > On Wed Dec 12 03:20:56 2012, PERLOOK wrote:
> >> Technically, any variable that has at least some values is true
> > Uh, no. What about 0, or the string '0E0'? These are both values that are > > false. > > > >
> actually the string '0E0' is true. the only false values in perl are > undef, '', 0 (the number) and '0' (a string). ALL other values are true. > > the point really to be made is that no one creates boolean values and > tests in perl since you don't need any. all of perl's boolean tests work > fine and you won't find any special code for them. > > uri > >