[ruby-core:76688] [Ruby trunk Feature#4840] Allow returning from require
From:
rr.rosas@...
Date:
2016-08-03 19:30:48 UTC
List:
ruby-core #76688
Issue #4840 has been updated by Rodrigo Rosenfeld Rosas. I'm not sure I understand that link. What is 1, 2, 3 and 4? What are the bugs? ---------------------------------------- Feature #4840: Allow returning from require https://bugs.ruby-lang.org/issues/4840#change-59904 * Author: Rodrigo Rosenfeld Rosas * Status: Feedback * Priority: Normal * Assignee: Nobuyoshi Nakada ---------------------------------------- I have a situation where there is some code in Gitorious like: ~~~ruby unless defined? GitoriousConfig # tons of lines here end ~~~ And I would it to look like ~~~ruby return if defined? GitoriousConfig #tons of lines here ~~~ It would be great to allow return from a required file or some other keyword (break, etc or a new one) ---Files-------------------------------- feature-4840.odp (114 KB) 0001-compile.c-toplevel-return.patch (1.71 KB) -- https://bugs.ruby-lang.org/ Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe> <http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>