[ENH] backgrounds and numbers with commas

Chris Reuter cgreuter at calum.csclub.uwaterloo.ca
Thu Dec 9 06:07:23 UTC 1999


On Wed, Dec 08, 1999 at 07:38:34PM -0800, Raab, Andreas wrote:
> > :Second, how about allowing embedded commas inside of numbers?  This
> > :would allow people to write "1,000,000" instead of "1000000".  The
> > :former seems much easier to me to read.  Does anyone need to 
> > be sending
> > :the comma message to a number??  An ideal fix would actually 
> > check that
> > :people put three digits between each number (avoiding things like
> > :'10,3188'), but here's a patch which allows commas at all:
> > 
> > 
> > Welp, in QuÈbec we're writing "1000000" with spaces instead of commas,
> just
> > like this: "1 000 000". It may be written differently elsewhere on our
> > planet.
> 
> You bet. In Germany the common separator is "." (e.g., "1.000.000") and the
> delimiter for integer and fraction parts is "," (which drives quite some
> people mad if they have to use the 'american way' in common programming
> languages). 

I remember being taught to use spaces in grade school for that reason.

>               BTW, wasn't VB actually using regional settings now?!

Leave it to Microsoft to force you to move to a different country just
to compile a program.  ;)

> > What's about retrieving regional settings from the OS? Or 
> > having our very own regional settings under Squeak ?
> 
> I like the latter - we could always go out and query the OS for a hint about
> the regional settings if that's supported but it may be a good idea to keep
> this within the system (so that one can, for instance, change the regional
> setting just within a project). But, *sigh*, I guess we'll have to come up
> with a 'regional task force' for this - there are just too many americans on
> the team (and the list) ;-)

My preference would be to use spaces or underscores (just like Perl
and Ada).  Both are unambiguous in Squeak.


			--Chris





More information about the Squeak-dev mailing list