nobu.nokada / softhome.net wrote:

> Hi,

Moin.

> At Mon, 27 Dec 2004 13:02:41 +0900,
> Florian Gro? wrote in [ruby-core:04027]:
> 
>>On the ruby-muse mailing list which is a place for discussion of new 
>>ideas for Ruby there recently was a sub-thread concerning the 
>>introduction of user-defined number literal suffixes. These suffixes are 
>>already used in other languages and look like 1.5f or 0.6r. I think 
>>having these would be nice for user-defined numeric Classes like 
>>Rational (currently these overload 1/2 under mathn and other operations 
>>which can be a problem) and imaginary numbers (via the Complex class). I 
>>think being able to write 0.5r instead of the much longer 
>>Rational.reduce(1, 2), 2i instead of Complex.new(2, 1) or 5.1b instead 
>>of BigDecimal.new("5.1") would be a nice thing that would not have many 
>>downsides.
> 
> As for Rational, almost cannot be represented in that way.

I'm not sure about what you mean. Why would it not make sense to 
represent Rationals as 0.5R? (which is equivalent to 5/10 or 1/2)