=begin
Hello
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
Here is patch
It should be more restrictive to disallow traps like 0xadup
Index: parse.y
=begin
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
=begin
On Sat, Oct 30, 2010 at 10:37:16PM +0900, Marcus Rueckert wrote:
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?
Its matter whats more elegant.
darix
--
openSUSE - SUSE Linux is my linux
openSUSE is good for you www.opensuse.org
Some suffixes for number literals, such as 4i and 4r, were introduced as a custom syntax. Please reopen if you still want a general framework for number suffixes.