[#65451] [ruby-trunk - Feature #10333] [PATCH 3/1] optimize: "yoda literal" == string — ko1@...

Issue #10333 has been updated by Koichi Sasada.

9 messages 2014/10/07

[ruby-core:65567] Re: is there a name for this?

From: Yukihiro Matsumoto <matz@...>
Date: 2014-10-09 16:57:05 UTC
List: ruby-core #65567
Hi,

In message "Re: [ruby-core:65563] Re: is there a name for this?"
    on Thu, 9 Oct 2014 15:26:45 +0200, Xavier Noria <fxn@hashref.com> writes:

|Thanks Matz.
|
|Let me put a concrete example to evaluate:
|
|"A constant appearing after a +class+ or +module+ keyword
|
|  module DRb
|    class DRbMessage
|    end
|  end
|
|is checked in the cref and only in the cref."
|
|Sounds good? Prefer another term?
|
|Xavier
|
|PS: "checked" has a special meaning at that point, defined ad-hoc for
|convenience, it implies the autoload logic.

That's correct for CRuby implementation. Other implementation may use
different technique and terms, for example, mruby uses the term
target_class.  I often use "surrounding class/module" to explain the
behavior.

							matz.

In This Thread