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 82BA41AA0B33 for ; Thu, 4 Aug 2016 03:51:52 +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 F3427B5D8A9 for ; Thu, 4 Aug 2016 04:25:29 +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 1764918CC7B1 for ; Thu, 4 Aug 2016 04:25:30 +0900 (JST) Received: from neon.ruby-lang.org (localhost [IPv6:::1]) by neon.ruby-lang.org (Postfix) with ESMTP id BE2D91204D9; Thu, 4 Aug 2016 04:25:29 +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 E395B120038 for ; Thu, 4 Aug 2016 04:25:25 +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=UjS3Gj8pKw7e28SEw+2Qb4Ks3+A=; b=GwstKEf+afTk0GWyFd wspnxG47Jct/PfxQfJOHAz5H6FV3p8DphLma9ilc9U14IISypo99eNOQJ5oABYka yf0W6QS3nUL+QMEtBuKzlN6eM1B3x700zk28mwCuEeXzzFUoPABlhCWgL94qF7vT HTb2NGKtJ5a7n1DgqNd5PC9bg= Received: by filter0614p1mdw1.sendgrid.net with SMTP id filter0614p1mdw1.11679.57A24506A 2016-08-03 19:24:54.118979559 +0000 UTC Received: from herokuapp.com (ec2-54-226-157-133.compute-1.amazonaws.com [54.226.157.133]) by ismtpd0005p1iad1.sendgrid.net (SG) with ESMTP id RNKvn7_VRdCa8IYd66MQyg Wed, 03 Aug 2016 19:24:53.979 +0000 (UTC) Date: Wed, 03 Aug 2016 19:24:53 +0000 From: rr.rosas@gmail.com To: ruby-core@ruby-lang.org Message-ID: References: Mime-Version: 1.0 X-Redmine-MailingListIntegration-Message-Ids: 51450 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/Ymy4QrNMhiuLXJG8OTL2vJD1yS7wzZRLNPrB30/JSiax5RGCMjCCqXEFZrwqqf MmtfYQtGHZvmJFPTWZg/JIpJ2B91aHpok4EgVCHS/Odu+JO04MdBZk6hloYt7vWor0XbQaqMb/zc/0 eiQl+KuJjZnotpi0PuybXFa37DG6kwZ453SmE1v8bAi3+rHC0ZTPa1bJXQ== X-ML-Name: ruby-core X-Mail-Count: 76687 Subject: [ruby-core:76687] [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. If I understood it correctly, this issues currently duplicates #7882 which means closing this one would keep the other open. ---------------------------------------- Feature #11337: Allow rescue without begin inside blocks https://bugs.ruby-lang.org/issues/11337#change-59903 * 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/