Numeric literal syntax (was: Py 2.6 changes)

Nick Craig-Wood nick at craig-wood.com
Tue Sep 2 07:35:41 EDT 2008


bearophileHUGS at lycos.com <bearophileHUGS at lycos.com> wrote:
>  Ben Finney:
> > 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.
> 
>  It's not just my familiarity, Ada language too uses underscore for
>  that purpose, I think, so there's a precedent, and Ada is a language
>  designed to always minimize programming errors, simple code mistakes
>  too.

And perl also

*ducks*
-- 
Nick Craig-Wood <nick at craig-wood.com> -- http://www.craig-wood.com/nick



More information about the Python-list mailing list