[Swift-devel] numeric type(s) in swift.

Mihael Hategan hategan at mcs.anl.gov
Tue Jul 24 17:40:29 CDT 2007


On Tue, 2007-07-24 at 22:10 +0000, Ben Clifford wrote:
> On Tue, 24 Jul 2007, Mihael Hategan wrote:
> 
> > One potentially problem-causing change (if broken code makes broken
> > assumptions) is that Swift number values are not stored as strings any
> > more, but as subclasses of java.lang.Number.
> 
> I think(?) that the only code that made assumptions about the number 
> formats are the numerical operators and code that assumes the toString() 
> output will be of a particular format when passing as a commandline 
> parameter.

That format would only be kept in the case in which the assigned value
would be used. Using any arithmetic operators would not make any
guarantee of a particular format. That in the old code. Maybe some
formatting functions should be provided?

> 




More information about the Swift-devel mailing list