Re: help with statistics library



Lionel B said:

<snip>

Basically, if I *don't* see a cast where an implicit conversion is
going to happen, there's always in the back of my mind: "Did the
programmer realise that there's a conversion here? Is this what they
intended? Did they think about it?", whereas if I see a cast then I
*know* the programmer has thought about it.

Alas, in my experience, if I see a cast in C code, I know there's an
extraordinarily high probability that the programmer did *not* think
about it. All too often, it's just cargo cult programming.

--
Richard Heathfield
"Usenet is a strange place" - dmr 29/7/1999
http://www.cpax.org.uk
email: rjh at the above domain, - www.
.



Relevant Pages

  • Re: Common misconceptions about C (C95)
    ... a pointer to any object type with merely an assignment? ... Because in C, we trust the programmer. ... system via a conversion, but does not require a diagnostics, contains a cast. ...
    (comp.lang.c)
  • Re: Common misconceptions about C (C95)
    ... Cast it to suitable type instead. ... workers by workers, where the workers with the least principle become ... But to make a programmer code to show off a knowledge of what Kenny ...
    (comp.lang.c)
  • Re: warning - comparing a signed value to an unsinged value
    ... but only to the compiler -- more below. ... Casting i gets rid of the warning; adding the redundant ... I would still cast i in ... Even if the programmer in question is someone like you, ...
    (comp.lang.c)
  • Re: [OT] C++ question re. dyn. mem.
    ... MJM> aware of what you are doing when you do a type conversion. ... wanted to strike the C-style cast out of the C++ standard except that all C ... intelligence" is in general no good, since the programmer probably only ...
    (Debian-User)
  • Re: Generics is a waste of time
    ... > object is being dealt with and thus what appropriate cast ... > as a programmer? ... Getting around that cast would have been quite simple taking care of that at ... attention, favouring more quality, which I'm far from sure of. ...
    (comp.lang.java.programmer)