On 12/14/10 3:24 AM, bearophile wrote:
Andrei:
I asked people at a seminar during a recess: "How many remarkable
complex constants do you know?" After a long pause, one person
replied: "1 + 0i".
Instead of asking that question, I suggest to ask people that write
code that uses complex numbers if they like the idea of complex
literals.
So you mean I should ask _that_ question but _other_ people.
And I suggest to analyse some Fortran/C code that uses
complex numbers and count how often literals may be useful in the
code, and how much they may improve the readability of the code.
Magic constants have issues - be they strings, integrals, or doubles. I
have trouble thinking that complex literals are somehow exempt.
Andrei