--0016368340b6e43c0b04b30fb60f
Content-Type: text/plain; charset=ISO-8859-1

I'm not in favor of this proposal, but I don't think it would break these
cases, because they are not of the form foo is bar. It would, however,
break this case:

  def foo; end
  def is(*); end

  foo is 1

Yehuda Katz
(ph) 718.877.1325


On Thu, Dec 1, 2011 at 2:07 PM, Eric Hodel <drbrain / segment7.net> wrote:

>
> Issue #5695 has been updated by Eric Hodel.
>
>
> in
> This would break compatibility with RubyGems:
>
>  $ egrep '\bis' lib/rubygems/package/tar_input.rb | grep -v '#'
>      is  ew io, security_policy
>      yield is
>      is.close if is
>        is  ipped_stream entry
>          Gem::Package::TarReader.new is do |inner|
>          is.close if is
>        is  tringIO.new(dis)
>        is  tringIO.new(zis.inflate(entry.read))
>
> ίΕ
>
> ----------------------------------------
> Feature #5695: CoffeeScript "is" and "isnt" keywords
> http://redmine.ruby-lang.org/issues/5695
>
> Author: Suraj Kurapati
> Status: Open
> Priority: Normal
> Assignee:
> Category:
> Target version:
>
>
> Hello,
>
> Please add "is" and "isnt" keywords, which behave like the " and "!> operators respectively, to Ruby.  These keywords come from the CoffeeScript
> language.  They are useful to prevent accidental assignment (forgetting a
> "in ") and they preserve reading order, unlike inverted "if 5 x"
> expressions known as "Yoda conditionals".
>
> Thanks for your consideration.
>
>
> --
> http://redmine.ruby-lang.org
>
>

--0016368340b6e43c0b04b30fb60f
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

I&#39;m not in favor of this proposal, but I don&#39;t think it would breakhese cases, because they are not of the form foo is bar. It would, however, break this case:<div><br></div><div>def foo; end</div><div>def is(*); end</div>

<div><div><br></div><div>foo is 1</div><div><br clear="all">Yehuda Katz<br>(ph) 718.877.1325<br>
<br><br><div class="gmail_quote">On Thu, Dec 1, 2011 at 2:07 PM, Eric Hodel <span dir="ltr">&lt;drbrain / segment7.net&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<br>
Issue #5695 has been updated by Eric Hodel.<br>
<br>
<br>
=begin<br>
This would break compatibility with RubyGems:<br>
<br>
  egrep &#39;\bis&#39; lib/rubygems/package/tar_input.rb | grep -v &#39;#&#39;<br>
 s = new io, security_policy<br>
 ield is<br>
 s.close if is<br>
 s = zipped_stream entry<br>
 em::Package::TarReader.new is do |inner|<br>
 s.close if is<br>
 s = StringIO.new(dis)<br>
 s = StringIO.new(zis.inflate(entry.read))<br>
<br>
=end<br>
<div class="HOEnZb"><div class="h5"><br>
----------------------------------------<br>
Feature #5695: CoffeeScript &quot;is&quot; and &quot;isnt&quot; keywords<br>
<a href="http://redmine.ruby-lang.org/issues/5695" target="_blank">http://redmine.ruby-lang.org/issues/5695</a><br>
<br>
Author: Suraj Kurapati<br>
Status: Open<br>
Priority: Normal<br>
Assignee:<br>
Category:<br>
Target version:<br>
<br>
<br>
Hello,<br>
<br>
Please add &quot;is&quot; and &quot;isnt&quot; keywords, which behave like the &quot;==&quot; and &quot;!=&quot; operators respectively, to Ruby. hese keywords come from the CoffeeScript language. hey are usefulo prevent accidental assignment (forgetting a &quot;=&quot; in &quot;==&quot;) and they preserve reading order, unlike inverted &quot;if 5 == x&quot; expressions known as &quot;Yoda conditionals&quot;.<br>


<br>
Thanks for your consideration.<br>
<br>
<br>
--<br>
<a href="http://redmine.ruby-lang.org" target="_blank">http://redmine.ruby-lang.org</a><br>
<br>
</div></div></blockquote></div><br></div></div>

--0016368340b6e43c0b04b30fb60f--