From: "rits (First Last)" Date: 2013-11-25T05:11:44+09:00 Subject: [ruby-core:58553] [ruby-trunk - Feature #7511] short-circuiting logical implication operator Issue #7511 has been updated by rits (First Last). mame (Yusuke Endoh) wrote: > Please show a more concrete example. > logical implication is a core operation of boolean algebra, do you also need concrete examples for || ? ok if you insist, lets say your code needs to perform some optional work but successfully, i.e. the existence of the method must imply it's successful execution. required_work && respond_to?(optional_work) => send(optional_work) ---------------------------------------- Feature #7511: short-circuiting logical implication operator https://bugs.ruby-lang.org/issues/7511#change-43131 Author: rits (First Last) Status: Assigned Priority: Normal Assignee: matz (Yukihiro Matsumoto) Category: Target version: Next Major I find I need logical implication (will use => here) in boolean expressions fairly often and even though a => b is equivalent to !a || b, this substitute is more difficult to read and make sense of in long expressions -- http://bugs.ruby-lang.org/