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=-2.6 required=3.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, 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 2EA811FAE2 for ; Thu, 8 Mar 2018 07:01:55 +0000 (UTC) Received: from neon.ruby-lang.org (localhost [IPv6:::1]) by neon.ruby-lang.org (Postfix) with ESMTP id 856EF1209E1; Thu, 8 Mar 2018 16:01:50 +0900 (JST) Received: from o1678948x4.outbound-mail.sendgrid.net (o1678948x4.outbound-mail.sendgrid.net [167.89.48.4]) by neon.ruby-lang.org (Postfix) with ESMTPS id B478C1209E0 for ; Thu, 8 Mar 2018 16:01:48 +0900 (JST) Received: by filter0012p3mdw1.sendgrid.net with SMTP id filter0012p3mdw1-32331-5AA0DFD9-F 2018-03-08 07:01:45.192831741 +0000 UTC Received: from herokuapp.com (ec2-54-234-52-67.compute-1.amazonaws.com [54.234.52.67]) by ismtpd0006p1iad1.sendgrid.net (SG) with ESMTP id ZjrrbAlrQ-68UJJsmlln9g for ; Thu, 08 Mar 2018 07:01:45.111 +0000 (UTC) Date: Thu, 08 Mar 2018 07:01:46 +0000 (UTC) From: shannonskipper@gmail.com To: ruby-core@ruby-lang.org Message-ID: References: Mime-Version: 1.0 X-Redmine-MailingListIntegration-Message-Ids: 61343 X-Redmine-Project: ruby-trunk X-Redmine-Issue-Id: 14588 X-Redmine-Issue-Author: Anon92929 X-Redmine-Sender: shan 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/Ymy4QrNMhiuLXJG8OTL2vJD1yS4qjXq9lUAQygvX1at3KfKLntKVUYL8lZz9lz PPFBDDCUFlPFSUC9uN+F+gHR2GK7rspR5ynQAsRm2R1W331+0xRRFw8ucGg3Izaffz92Ui5QRCvGzd eLvm8B9e9F78WrZ2qV8Ed+86LBoZCyFvSOpxN98zcfK5FIQmdoFBouFucQ== X-ML-Name: ruby-core X-Mail-Count: 86019 Subject: [ruby-core:86019] [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 shan (Shannon Skipper). Your behavior isn't acceptable. Do not open new issues when your issue is closed and locked. It is very bad manners. > I'm so sorry, that I reported, as a bug, the fact that my code started breaking because I updated BigDecimal and it choked on a random NaN. ~~~ ruby BigDecimal::VERSION #=> "1.3.4" BigDecimal(Float::NAN) #=> NaN ~~~ If you'd like to learn Ruby, and understand why it is how it is, we'd be happy to help in the #ruby channel on freenode.net. Or you could ask on the mailing list. What you're doing here isn't a good way to learn. Harassing maintainers will get you banned from Github entirely. This issue should be closed as a duplicate of #14587. ---------------------------------------- Bug #14588: math library functions should NOT raise exceptions https://bugs.ruby-lang.org/issues/14588#change-70880 * 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/