Issue #15445 has been updated by duerst (Martin Drst).


I seem to remember from the book (http://exceptionalruby.com/) by Avdi Grimm that in general, methods that have the same name as classes are more tolerant than other constructors. If I remember correctly, and this is by design, then we should leave it as is.

----------------------------------------
Feature #15445: Reject '.123' in Float() method
https://bugs.ruby-lang.org/issues/15445#change-75817

* Author: mrkn (Kenta Murata)
* Status: Open
* Priority: Normal
* Assignee: matz (Yukihiro Matsumoto)
* Target version: 
----------------------------------------
Since ruby 1.8, Ruby occurs a syntax error for ".<digit>" floating literal.
But Float() method accepts such form now.

I propose to reject ".<digit>" form even in Float() method.



-- 
https://bugs.ruby-lang.org/

Unsubscribe: <mailto:ruby-core-request / ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>