[ruby-core:32972] Re: [Ruby 1.9-Feature#4007][Open] numeric literal syntax sugar

From: Marcus Rueckert <darix@...>
Date: 2010-10-30 13:37:16 UTC
List: ruby-core #32972
On 2010-10-30 22:25:20 +0900, Ondrej Bilka wrote:
> As I looked to C++ extension suffing numeric literals.
> My proposal is make . in method call of numeric literal optional so we can for example write
> 4i instead 4.i 
> Another application is making Time manipulations more readable like
> deadline=Time.now + 2hours

activesupport already gives us stuff like
Time.now + 2.hours 

is typing the dot really that much extra work for you?

    darix

-- 
           openSUSE - SUSE Linux is my linux
               openSUSE is good for you
                   www.opensuse.org

In This Thread

Prev Next