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 (kankan.nagaokaut.ac.jp [133.44.2.24]) by blade.nagaokaut.ac.jp (Postfix) with ESMTP id EE9371AA06C8 for ; Tue, 2 Aug 2016 10:21:06 +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 0F708B5D946 for ; Tue, 2 Aug 2016 10:54:47 +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 6839718CC81E for ; Tue, 2 Aug 2016 10:54:47 +0900 (JST) Received: from neon.ruby-lang.org (localhost [IPv6:::1]) by neon.ruby-lang.org (Postfix) with ESMTP id 32B6F120498; Tue, 2 Aug 2016 10:54:46 +0900 (JST) X-Original-To: ruby-core@ruby-lang.org Delivered-To: ruby-core@ruby-lang.org Received: from o10.shared.sendgrid.net (o10.shared.sendgrid.net [173.193.132.135]) by neon.ruby-lang.org (Postfix) with ESMTPS id 1D5CF120475 for ; Tue, 2 Aug 2016 10:54:41 +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=PZfaU35HCv4Z3a+dizZ+Bq774kU=; b=ZdleNHpA1RyV9ANcTW q1jYlfrKSDBt9AIXFJO5kV/2g90sA7Q6TRAbwVe6Vj+rv8cCwM5Sn3XKK/4ponkp bctebRhZizKWUjAlJZ0eu6jNTWz6HyBpUUhFcKKJ3KDOhos6FGrWvTB25QvrGcJl dr6SdAOys2AaWsi1VvmdPxw6s= Received: by filter0428p1mdw1.sendgrid.net with SMTP id filter0428p1mdw1.306.579FFD5E4F 2016-08-02 01:54:38.961378344 +0000 UTC Received: from herokuapp.com (ec2-54-145-157-208.compute-1.amazonaws.com [54.145.157.208]) by ismtpd0006p1iad1.sendgrid.net (SG) with ESMTP id fB0pj32iQfiMfSvc9Ug7GA Tue, 02 Aug 2016 01:54:39.067 +0000 (UTC) Date: Tue, 02 Aug 2016 01:54:39 +0000 From: shyouhei@ruby-lang.org To: ruby-core@ruby-lang.org Message-ID: References: Mime-Version: 1.0 X-Redmine-MailingListIntegration-Message-Ids: 51410 X-Redmine-Project: ruby-trunk X-Redmine-Issue-Id: 11337 X-Redmine-Issue-Author: rosenfeld X-Redmine-Issue-Assignee: matz X-Redmine-Sender: shyouhei 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/Ymy4QrNMhiuLXJG8OTL2vJD1yS5bJN8PHxEyehPYPokbCefdMRguvmAII4dhYB vdpGwY6Ll9URmDPn/uH9dsaHJCg+gQSzWuV6XD/eWYM3RCYiuFoeKl+VaHPZmf0eyMGo65PjTdaPa5 McsGjMBLKvZzBR2IfJ5S4rCelM+tEjWF02EfXQOPox331T3PLnPwuJqUJA== X-SendGrid-Contentd-ID: {"test_id":"1470102879"} X-ML-Name: ruby-core X-Mail-Count: 76648 Subject: [ruby-core:76648] [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 Shyouhei Urabe. Issues linked. I guess those duplicated issues synchronizes their status each other so I don't close them (am I correct?). ---------------------------------------- Feature #11337: Allow rescue without begin inside blocks https://bugs.ruby-lang.org/issues/11337#change-59868 * 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/