[#73707] [Ruby trunk Misc#12004] Code of Conduct — hanmac@...
Issue #12004 has been updated by Hans Mackowiak.
3 messages
2016/02/05
[#73730] [Ruby trunk Feature#12034] RegExp does not respect file encoding directive — nobu@...
Issue #12034 has been updated by Nobuyoshi Nakada.
3 messages
2016/02/07
[#73746] [Ruby trunk Feature#12034] RegExp does not respect file encoding directive — nobu@...
Issue #12034 has been updated by Nobuyoshi Nakada.
3 messages
2016/02/09
[#73919] [Ruby trunk Feature#11262] Make more objects behave like "Functions" — Ruby-Lang@...
Issue #11262 has been updated by J旦rg W Mittag.
3 messages
2016/02/22
[#74019] [Ruby trunk Bug#12103][Rejected] ruby process hangs while executing regular expression. — duerst@...
Issue #12103 has been updated by Martin D端rst.
3 messages
2016/02/27
[ruby-core:73828] [Ruby trunk Feature#12076] The 'ditto' operator
From:
joelbryan.juliano@...
Date:
2016-02-16 08:33:24 UTC
List:
ruby-core #73828
Issue #12076 has been updated by Joel Bryan Juliano. Description updated ---------------------------------------- Feature #12076: The 'ditto' operator https://bugs.ruby-lang.org/issues/12076#change-57004 * Author: Joel Bryan Juliano * Status: Open * Priority: Normal * Assignee: ---------------------------------------- I like to introduce and propose an idea to use a 'ditto' operator in 'else' or 'elsif' statement, the ditto operator is a reference to the true statement in the if conditions to be used in the proceeding else and elsif statements, the goal is to reuse the true statement for other conditions also it will make the code to be much readable than recopying and pasting the true statement again. ~~~ if user == "foo" puts "welcome" + user # => welcome foo elsif user == "bar" ditto # => welcome bar else user = "stranger" ditto # => welcome stranger end ~~~ -- 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>