Re: Pi.



Richard Edgar wrote:
> James Giles wrote:
>
>>> But, of course, <after> visual checking the non-conforming spaces
>>> can be elided for the convenience of the compiler as opposed to
>>> its human... :)
>>
>>
>> This is dangerous in itself. How do you know the blanks are
>> *correctly* elided? Doing it manually is a pain.
>
> If someone cannot correctly delete five or six spaces _once_ from a
> line of text, then they probably have bigger problems than getting
> pi correct to twenty decimal places or so. [...]

Still, people get distracted: the phone rings, it's late, whatever.
And once you've made the error, you still believe that you've
just carefully double-checked the value of the constant.

> [...] We are not talking about
> constants that have to change every time a program is run, [...]

We aren't? PI doesn't change, but we're also talking about the
syntax that's accepted by the language. Other constants may
indeed change every time the program runs. All the more
reason not to have to remove the spaces that make the literals
more legible.

> [...] but
> about those which are defined once for _all_ programs. [...]

All the more reason not to change them *after* you've double-checked
their value.

--
J. Giles

"I conclude that there are two ways of constructing a software
design: One way is to make it so simple that there are obviously
no deficiencies and the other way is to make it so complicated
that there are no obvious deficiencies." -- C. A. R. Hoare


.



Relevant Pages

  • Re: Function PRESENT and logical combinations
    ... > James Giles wrote: ... The compiler clearly determined what the return value ... "compile-time" can be part of the execution of the code. ... no deficiencies and the other way is to make it so complicated ...
    (comp.lang.fortran)
  • Re: cvf/ide - colored keywords
    ... > James Giles wrote: ... >> up syntax coloring. ... The document is on the CD that the compiler was distributed on. ... no deficiencies and the other way is to make it so complicated ...
    (comp.lang.fortran)
  • Re: Type specification and initialization expressions
    ... James Giles wrote: ... to be non-standard for the same reason: ... By Steve's response it's clear that I mis-remembered the case. ... no deficiencies and the other way is to make it so complicated ...
    (comp.lang.fortran)
  • Re: Converting fixed-to-free format
    ... James Giles wrote in message ... ... would continue to work exactly as before in spite of the *crap* ... I have recommended having a compiler ... column 72 would be given specific diagnostic messages. ...
    (comp.lang.fortran)
  • Re: How to read data from the ascii file?
    ... > James Giles wrote: ... >> compiler it is. ... > Q Which compilers should we support to cover most of the market. ... When/if CVF folds will be up to new horse owners, ...
    (comp.lang.fortran)