[Gambas-user] Math bugs??

Grahame White grahame at ...457...
Sat Jun 12 17:53:10 CEST 2004


On Saturday 12 June 2004 16:37, Nelson Ferraz wrote:
> Fabien Bodard wrote:
> > not a bug ... in gambas say : 1/3.0
> > The '.' force gambas to return a float result.
> >
> > By this way gambas take less ressources.
>
> This trick can be useful in many arithmetic operations, but should be
> disabled when the expression involves a float division. That's why we
> have the backslash division (1\3).

I prefer it the way it is, it's more C-like imo.

>
> "Premature optimisation is the root of all evil in programming".
>
> http://c2.com/cgi/wiki?PrematureOptimization

True, but when creating a language I'd have to say that providing a way to 
optimise is ok.

Grahame




More information about the User mailing list