how would you say this in plain english?

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
User avatar
Burrito
Spockulator
Posts: 4715
Joined: Wed Feb 04, 2004 8:15 pm
Location: Eden, Utah

how would you say this in plain english?

Post by Burrito »

$this->something ?
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

the "something" property.
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Post by Christopher »

Feyd is right, but I think most programmers don't even add the "property" part in their head when they program -- it's just "something." That's because the class is namespaced out of the rest of the application, so there is no reason to keep referring to the class name when you are coding withiin the class' namespace.

I also think when referring to properties, for example $user->something you would just say "user something" most of the time. Same with methods, for $user->something() you would say something like "call user something"

It is interesting because the manual, by analogy, refers to "->" as "the pathname separator", but to the internals group it is called "the object operator" which I think is the perferred name.
(#10850)
User avatar
Burrito
Spockulator
Posts: 4715
Joined: Wed Feb 04, 2004 8:15 pm
Location: Eden, Utah

Post by Burrito »

no no no...I mean how would you say that as if you're spelling it out.

ex:

http://www.blah.com = double-u double-u double-u dot blah dot com

how would you say:

$this->something

this arrow something?
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Post by Christopher »

"this object operator something" but who would understand you? "this property something" or "this method something" would probably be understood.
(#10850)
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

this dereference (deref for short) something.
User avatar
Burrito
Spockulator
Posts: 4715
Joined: Wed Feb 04, 2004 8:15 pm
Location: Eden, Utah

Post by Burrito »

feyd wrote:this dereference (deref for short) something.
thank you.
User avatar
Nathaniel
Forum Contributor
Posts: 396
Joined: Wed Aug 31, 2005 5:58 pm
Location: Arkansas, USA

Post by Nathaniel »

feyd wrote:this dereference (deref for short) something.
8O
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

Nathaniel wrote:
feyd wrote:this dereference (deref for short) something.
8O
I think it comes from C. Someone was rambling on to me the other day about deferencing pointers but I switched off after the first sentence :P
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

yes, it's a C thing.
timvw
DevNet Master
Posts: 4897
Joined: Mon Jan 19, 2004 11:11 pm
Location: Leuven, Belgium

Post by timvw »

In php parlance -> would be "T_OBJECT_OPERATOR".
Post Reply