From: duerst@... Date: 2018-12-21T05:49:55+00:00 Subject: [ruby-core:90651] [Ruby trunk Feature#15445] Reject '.123' in Float() method Issue #15445 has been updated by duerst (Martin D��rst). 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>