[#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:65562] Re: is there a name for this?

From: Yukihiro Matsumoto <matz@...>
Date: 2014-10-09 13:14:03 UTC
List: ruby-core #65562
Hi,

In message "Re: [ruby-core:65561] Re: is there a name for this?"
    on Thu, 9 Oct 2014 14:11:54 +0200, Xavier Noria <[email protected]> writes:

|On Thu, Oct 9, 2014 at 1:59 PM, Nobuyoshi Nakada <[email protected]> wrote:
|
|On 2014/10/09 20:41, Xavier Noria wrote:
|> > When describing stuff about constants (working in their guide), you
|> often need to refer to the first element of the nesting, or Object if the
|> nesting is empty.
|> >
|> > I don't recall this has a user-level name, is there an internal name for
|> it that the guide could use?
|>
|> Maybe "cref", as an implementation detail name?
|>
|
|Awesome, if it was fine to promote "cref" to a user-level name the guide
|could define it and use it where necessary. That would be handy.

"cref" stands for class reference.  It's a placeholder for the
reference to the surrounding class.  We need a placeholder because the
class itself is not created yet at the compile time.

							matz.

In This Thread