From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS4713 221.184.0.0/13 X-Spam-Status: No, score=-1.0 required=3.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, FORGED_YAHOO_RCVD,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_MED,SPF_PASS,T_RP_MATCHES_RCVD shortcircuit=no autolearn=no autolearn_force=no version=3.4.0 Received: from neon.ruby-lang.org (neon.ruby-lang.org [221.186.184.75]) by dcvr.yhbt.net (Postfix) with ESMTP id C813B1FAE2 for ; Thu, 8 Mar 2018 07:36:53 +0000 (UTC) Received: from neon.ruby-lang.org (localhost [IPv6:::1]) by neon.ruby-lang.org (Postfix) with ESMTP id 522A3120A05; Thu, 8 Mar 2018 16:36:52 +0900 (JST) Received: from o1678916x28.outbound-mail.sendgrid.net (o1678916x28.outbound-mail.sendgrid.net [167.89.16.28]) by neon.ruby-lang.org (Postfix) with ESMTPS id 934DE1209FE for ; Thu, 8 Mar 2018 16:36:49 +0900 (JST) Received: by filter0007p3las1.sendgrid.net with SMTP id filter0007p3las1-19643-5AA0E80F-4F 2018-03-08 07:36:47.98694137 +0000 UTC Received: from herokuapp.com (ec2-23-20-139-3.compute-1.amazonaws.com [23.20.139.3]) by ismtpd0002p1iad1.sendgrid.net (SG) with ESMTP id A2rjzEILR_iOnoDDWF2xSg for ; Thu, 08 Mar 2018 07:36:47.874 +0000 (UTC) Date: Thu, 08 Mar 2018 07:36:48 +0000 (UTC) From: spamscud2003@yahoo.com To: ruby-core@ruby-lang.org Message-ID: References: Mime-Version: 1.0 X-Redmine-MailingListIntegration-Message-Ids: 61353 X-Redmine-Project: ruby-trunk X-Redmine-Issue-Id: 14588 X-Redmine-Issue-Author: Anon92929 X-Redmine-Sender: Anon92929 X-Mailer: Redmine X-Redmine-Host: bugs.ruby-lang.org X-Redmine-Site: Ruby Issue Tracking System X-Auto-Response-Suppress: All Auto-Submitted: auto-generated X-SG-EID: ync6xU2WACa70kv/Ymy4QrNMhiuLXJG8OTL2vJD1yS4BdZTqoGu+ccuHsCjC0rn7dGcovMSuRgb/oC LianO8lVPP3BMqSAOxARQWoSeakJcjw6R0bf4VMYjcs9d7C+Ic3LnCcJqqta1+AKmFUiYjE3jycp12 sDkD6kcH/nPbPfw+nBTRR64wEdlG9zS6TgvQsQfjgDgxEeFJQJqF21PuJw== X-ML-Name: ruby-core X-Mail-Count: 86029 Subject: [ruby-core:86029] [Ruby trunk Bug#14588] math library functions should NOT raise exceptions X-BeenThere: ruby-core@ruby-lang.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Ruby developers List-Id: Ruby developers List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ruby-core-bounces@ruby-lang.org Sender: "ruby-core" Issue #14588 has been updated by Anon92929 (Anon Ymous). > Kernel methods like Float(), Integer(), and BigDecimal() are all explicitly for the purpose of ensure strict conformance with numeric representation. Are you a robot? NaN should not be an exception. No form of NaN should an exception, it should just be NaN. Let NaN be NaN. I don't want to worry about all the new ways NaN could be NaN when I 'bundle update'. ---------------------------------------- Bug #14588: math library functions should NOT raise exceptions https://bugs.ruby-lang.org/issues/14588#change-70889 * Author: Anon92929 (Anon Ymous) * Status: Open * Priority: Normal * Assignee: * Target version: * ruby -v: * Backport: 2.3: UNKNOWN, 2.4: UNKNOWN, 2.5: UNKNOWN ---------------------------------------- BigDecimal, Integer, Float, none of these should raise exceptions, but they should all fail SILENTLY or return NaN during error cases. I shouldn't have to go fix every possible way that BigDecimal might throw a breaking change in a thousand places in my codebase. I need math libraries that DON'T BREAK!!! BUG RESUBMITTED. The bug was rejected at github because I was referred to open a ticket at ruby-lang.org. The bug was rejectet at ruby-lang.org because the ticket was closed at github. Not cool, guys. -- https://bugs.ruby-lang.org/