From: Nat Pryce Date: 2001-07-30T20:02:17+09:00 Subject: [ruby-talk:18796] Re: Ruby as opposed to Python? ----- Original Message ----- From: "Florian G. Pflug" > On Mon, Jul 30, 2001 at 01:02:54PM +0900, Paul Prescod wrote: > > "Florian G. Pflug" wrote: > > > If you write a function, which depends on 1/2 being 0.5, why don't you just > > > write a.to_f / b.to_f? > > > > Yes, that's a workaround. > Or just stating what the programmer _really_ wants.... ... > > #2. It is somewhat ugly to do a type conversion just to guard against a > > flaw in the language. > But whats the flaw? I'd rather say, that in one case one behaviour is > better, and in the other case the other... I would much rather have the language require explicit conversions than be doing "magic" behind my back. Although it's slightly less convenient when writing new code, it's vastly more convenient when maintaining code because more of the program's behaviour is documented in the source.