[Tutor] Advice for my function, isPrime(n), please

Kent Johnson kent37 at tds.net
Sat Jul 19 13:44:07 CEST 2008


On Sat, Jul 19, 2008 at 5:03 AM, Dick Moores <rdm at rcblue.com> wrote:

>> > Readability counts.  <--
>>
>> Personally I think my way is more readable. It says what it means
>> without any fluff. IMO it is explicit, readable, concise and to the
>> point.
>
> Well, readability is in the eye of the reader. Also, because I lived in
> Japan 30 years, I could throw a concise, explicit, and to-the-point Japanese
> sentence at you that you wouldn't understand at all.

Yes, and then if I complained that the sentence was not readable you
would rightly conclude that the problem was with the reader, not the
sentence.

> value = (x != 0)
> return value
>
> is clearer, IMO.

Yes.

Kent


More information about the Tutor mailing list