Numeric literal syntax
Grant Edwards
grante at visi.com
Wed Sep 3 10:15:05 EDT 2008
On 2008-09-03, Ben Finney <bignose+hates-spam at benfinney.id.au> wrote:
> Ben Finney <bignose+hates-spam at benfinney.id.au> writes:
>
>> I don't see any good reason (other than your familiarity with the D
>> language) to use underscores for this purpose, and much more reason
>> (readability, consistency, fewer arbitrary differences in syntax,
>> perhaps simpler implementation) to use whitespace just as with string
>> literals.
>
> Another reason in support of spaces (rather than underscores) to
> separate digit groups: it's the only separator that follows the SI
> standard for representing numbers:
>
> ??? for numbers with many digits the digits may be divided into
> groups of three by a thin space, in order to facilitate reading.
> Neither dots nor commas are inserted in the spaces between groups
> of three.
But my keyboard doesn't _have_ a thin-space key!
--
Grant Edwards grante Yow! One FISHWICH coming
at up!!
visi.com
More information about the Python-list
mailing list