From: "mame (Yusuke Endoh)" Date: 2012-03-30T08:23:04+09:00 Subject: [ruby-core:43906] [ruby-trunk - Feature #6222] Use ++ to connect statements Issue #6222 has been updated by mame (Yusuke Endoh). 'also' is worse than '++'. Adding a new keyword causes significant compatibility issue. def also ... end I guess such a method name might be actually used in DSLs. It also might be used as a flag variable. Well, I've already added `duplicates' tag to this ticket. So you can comment to which ever one you like. Note that scattering discussion logs may take you at a disadvantage, e.g., your opinion may be missed, our discussion may go around in circles, etc. Thomas, see #6201. Right before I tell :-) -- Yusuke Endoh ---------------------------------------- Feature #6222: Use ++ to connect statements https://bugs.ruby-lang.org/issues/6222#change-25421 Author: gcao (Guoliang Cao) Status: Assigned Priority: Normal Assignee: matz (Yukihiro Matsumoto) Category: core Target version: I propose to use ++ to connect two or multiple statements, e.g. do_this ++ do_that ++ do_something It is equivalent to (do_this; do_that; do_something) but more readable. It can be used to replace below idiom do_something and return if condition with do_something ++ return if condition The current way is very error prone because do_something might return false/nil in some cases and cause problems. And new Ruby programmers might not understand the meaning behind this idiom and mimic it blindly. I noticed someone proposed 'then' for same purpose (See http://bugs.ruby-lang.org/issues/6201) but is postponed to 3.0 because it is already a keyword. I like 'then' too but if it is not acceptable due to backward compatibility issue, then '++' is a good alternative. -- http://bugs.ruby-lang.org/