From: shevegen@... Date: 2018-12-23T14:38:02+00:00 Subject: [ruby-core:90684] [Ruby trunk Feature#15445] Reject '.123' in Float() method Issue #15445 has been updated by shevegen (Robert A. Heiler). On a side note, perhaps we should add Float() to this document: https://ruby-doc.org/core-2.5.3/Float.html I understand that this is not part of class Float itself; but it uses the same name (just distinguishes with the () for method call). It may not have to be explained in that document, but a link to where this may be explained may be helpful for people. I would also recommend to put this information somewhere in the official documentation, ideally after matz could comment on it (since only matz fully knows the intent behind Float() and the other methods) - I note this down only so that we can find this in the official documentation as well. Nothing against the book, mind you, but I believe that the main ruby documentation site would be the ideal place for such documentation. ---------------------------------------- Feature #15445: Reject '.123' in Float() method https://bugs.ruby-lang.org/issues/15445#change-75857 * Author: mrkn (Kenta Murata) * Status: Open * Priority: Normal * Assignee: matz (Yukihiro Matsumoto) * Target version: ---------------------------------------- Since ruby 1.8, Ruby occurs a syntax error for "." floating literal. But Float() method accepts such form now. I propose to reject "." form even in Float() method. -- https://bugs.ruby-lang.org/ Unsubscribe: