Re: [RFC] export TRUE and FALSE from someplace



* Andrew Pimlott <gtk-perl-list andrew pimlott net> [2004-01-21 16:50]:
On Wed, Jan 21, 2004 at 01:37:17PM +0100, A. Pagaltzis wrote:
I use

    use constant FALSE => !TRUE;

That's nice, but why not go all the way?

    use constant FALSE => !TRUE;
    use constant TRUE => !FALSE;

Because it doesn't compile..

Anyway, since I'm not sure how tongue-in-cheek your post actually
is: the reason I define FALSE in terms of TRUE is that

    use constant FALSE => '';

looks a bit odd at first glance unless you expected it. !TRUE is
self-explanatory.

-- 
Regards,
Aristotle
 
"If you can't laugh at yourself, you don't take life seriously enough."



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]