Issue #6224 has been updated by rosenfeld (Rodrigo Rosenfeld Rosas).


Exactly. Actually I didn't know about 1141, but I've read about 4965 recently.
----------------------------------------
Feature #6224: Make variables in if/unless conditions available to conditional statements
https://bugs.ruby-lang.org/issues/6224#change-25393

Author: gcao (Guoliang Cao)
Status: Open
Priority: Normal
Assignee: 
Category: core
Target version: 


I propose to make below code work

  do_something(a) if a = condition

Above code should work exactly same as

  if a = condition
    do_something(a)
  end

If there is a reason behind why the first case does not work, please let me know.

Thank you.
Guoliang Cao


-- 
http://bugs.ruby-lang.org/