Re: "Perfect" or "Provable" security both crypto and non-crypto?
From: Rob Warnock (rpw3_at_rpw3.org)
Date: 09/14/04
- Next message: Simon Johnson: "Re: "Perfect" or "Provable" security both crypto and non-crypto?"
- Previous message: Mok-Kong Shen: "Re: A basic question about hashing"
- In reply to: Douglas A. Gwyn: "Re: "Perfect" or "Provable" security both crypto and non-crypto?"
- Next in thread: Paul Leyland: "Re: "Perfect" or "Provable" security both crypto and non-crypto?"
- Reply: Paul Leyland: "Re: "Perfect" or "Provable" security both crypto and non-crypto?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Tue, 14 Sep 2004 04:30:08 -0500
Douglas A. Gwyn <DAGwyn@null.net> wrote:
+---------------
| Another thing the language designer could do that would
| help would be to make it hard to write one thing while
| thinking another, for example, the notorious C code
| if (a = 0) ...
| which out of context is pretty easy to spot but if one's
| attention slips for an instant while coding, the bug
| might remain undetected for a long time.
+---------------
Which is why a former co-worker of mine [occasional seen here]
made a practice of always writing comparisons as "if (0 == a) ..."
so that just in case he typo'd and dropped one of the "=" the
compiler would complain at him. It looked a bit odd the first
couple of times I saw it, but eventually I started using it in
my own code too.
-Rob
-----
Rob Warnock <rpw3@rpw3.org>
627 26th Avenue <URL:http://rpw3.org/>
San Mateo, CA 94403 (650)572-2607
- Next message: Simon Johnson: "Re: "Perfect" or "Provable" security both crypto and non-crypto?"
- Previous message: Mok-Kong Shen: "Re: A basic question about hashing"
- In reply to: Douglas A. Gwyn: "Re: "Perfect" or "Provable" security both crypto and non-crypto?"
- Next in thread: Paul Leyland: "Re: "Perfect" or "Provable" security both crypto and non-crypto?"
- Reply: Paul Leyland: "Re: "Perfect" or "Provable" security both crypto and non-crypto?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|