From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: poffice@blade.nagaokaut.ac.jp Delivered-To: poffice@blade.nagaokaut.ac.jp Received: from kankan.nagaokaut.ac.jp (smtp.nagaokaut.ac.jp [133.44.2.24]) by blade.nagaokaut.ac.jp (Postfix) with ESMTP id C56CD1AA06A6 for ; Mon, 1 Aug 2016 21:25:37 +0900 (JST) Received: from voscc.nagaokaut.ac.jp (voscc.nagaokaut.ac.jp [133.44.1.100]) by kankan.nagaokaut.ac.jp (Postfix) with ESMTP id CF57FB5D9EC for ; Mon, 1 Aug 2016 21:59:17 +0900 (JST) Received: from neon.ruby-lang.org (neon.ruby-lang.org [221.186.184.75]) by voscc.nagaokaut.ac.jp (Postfix) with ESMTP id 7F5E218D1D0E for ; Mon, 1 Aug 2016 21:59:18 +0900 (JST) Received: from neon.ruby-lang.org (localhost [IPv6:::1]) by neon.ruby-lang.org (Postfix) with ESMTP id F3DEE12044D; Mon, 1 Aug 2016 21:59:17 +0900 (JST) X-Original-To: ruby-core@ruby-lang.org Delivered-To: ruby-core@ruby-lang.org Received: from o2.heroku.sendgrid.net (o2.heroku.sendgrid.net [67.228.50.55]) by neon.ruby-lang.org (Postfix) with ESMTPS id E101512040F for ; Mon, 1 Aug 2016 21:59:13 +0900 (JST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sendgrid.me; h=from:to:references:subject:mime-version:content-type:content-transfer-encoding:list-id; s=smtpapi; bh=7Z2fraIz3diY8q+/wP8UM5ZmrV0=; b=N71mIq8LRtpdECIBvV k4HNcQKl8d7Gdhuqh0+B05CX1EIxSiFPwuHTOXRgGieoeVcnpvLZN3K4RaA4amFt pXy1T/0xKeB9se8M76QIBTG8s1nAuJhhShLIId5GInG++nZOwTKh7NdwwYg82OnY vpZhFLGDAVkc4BAC++CFzhRQE= Received: by filter0604p1mdw1.sendgrid.net with SMTP id filter0604p1mdw1.24804.579F479031 2016-08-01 12:58:56.923903015 +0000 UTC Received: from herokuapp.com (ec2-54-81-125-127.compute-1.amazonaws.com [54.81.125.127]) by ismtpd0004p1iad1.sendgrid.net (SG) with ESMTP id sNQRjEnCRZOWbnrfz5ADHQ Mon, 01 Aug 2016 12:58:57.037 +0000 (UTC) Date: Mon, 01 Aug 2016 12:58:56 +0000 From: rr.rosas@gmail.com To: ruby-core@ruby-lang.org Message-ID: References: Mime-Version: 1.0 X-Redmine-MailingListIntegration-Message-Ids: 51402 X-Redmine-Project: ruby-trunk X-Redmine-Issue-Id: 11337 X-Redmine-Issue-Author: rosenfeld X-Redmine-Issue-Assignee: matz X-Redmine-Sender: rosenfeld 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/Ymy4QrNMhiuLXJG8OTL2vJD1yS6kXEfp5NQRl9tJlCP3uuRCZh+G6xbvhOaNPt dprOQIaxMgYdFy66qv4ykx4NMhehF3LqDUAe2e+EUSEjVlAZk3/plaSTkpxRtTLe1I02MOI1qt4yov aWHvZmVHLkzdtRXB1bsSBSresz01LEsJAqutQjQUodNa9KkUaTAJJxUIsQ== X-ML-Name: ruby-core X-Mail-Count: 76639 Subject: [ruby-core:76639] [Ruby trunk Feature#11337] Allow rescue without begin inside blocks 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 #11337 has been updated by Rodrigo Rosenfeld Rosas. Could you please close this one? It seems it's a duplicate of issue #7882. issue #12623 seems to be yet another recent request for the same feature and should probably be closed as a duplicate of #7882 as well. ---------------------------------------- Feature #11337: Allow rescue without begin inside blocks https://bugs.ruby-lang.org/issues/11337#change-59857 * Author: Rodrigo Rosenfeld Rosas * Status: Open * Priority: Normal * Assignee: Yukihiro Matsumoto ---------------------------------------- While it's possible to have rescue's without begin in method definitions it's not possible to have the same facility inside blocks. For example, this is currently not possible: ~~~ 1.times do abc rescue p 'error' end ~~~ But this is possible ~~~ def a abc rescue p 'error' end ~~~ Would it be possible to also allow rescue without begin inside blocks too? -- https://bugs.ruby-lang.org/