Truth!

TorgoX on 2002-03-20T19:35:36

Dear Log,

Interesting thing I saw in LWP/Protocol/http.pm yesterday:

    !!$conn_cache

It was used in initializing a flag for whether $conn_cache (which normally holds an object, or undef) was true.


!!!$true

jjohn on 2002-03-20T19:55:16

That's not true, is it? Jesus.

be || !be

jhi on 2002-03-20T23:14:06

!! is a nice (and even somewhat cross-language) trick for "reduce-to-Boolean-truth-value". Fascistic type systems of course foil the trick,
requiring casts left and right ...

Re:be || !be

jjohn on 2002-03-21T02:58:42

Jarkko, you are wise. But, this is Perl. Surely, there are no fascists about?

Re:be || !be

jhi on 2002-03-21T20:52:08

I said "cross-language". Follow the cross to other, less cavalier, languages that have a separate boolean type...