Does anyone know what the name of the => operator in PHP is? It is something that is nearly impossible to search for, and I am not sure if it even has a name. I know that there has been a couple php-dev people in here before, so maybe someone kind throw me a bone... ;)
Justin Koivisto wrote: > Does anyone know what the name of the => operator in PHP is? It is > something that is nearly impossible to search for, and I am not sure if > it even has a name. I know that there has been a couple php-dev people > in here before, so maybe someone kind throw me a bone... ;)
I know it as "assignment operator" but probably incorrectly.
>> Does anyone know what the name of the => operator in PHP is? It is >> something that is nearly impossible to search for, and I am not sure if >> it even has a name. I know that there has been a couple php-dev people >> in here before, so maybe someone kind throw me a bone... ;)
> I know it as "assignment operator" but probably incorrectly.
The assignment operator would the just the = as in:
$a = 5; "Variable a is assigned the integer value of five"
Almost everywhere I've seen it discussed it is simply referenced as: "key => value" and is always typed out.
However, I guess it is sort of an assignment operator... Great now there are 2 of them! ;)
It's not a big deal, just one of those curiosity things that starts to annoy you late at night. That and I figured that it was about time I asked a question here anyway...
I noticed that Message-ID: <g7adnSZjsrQAD6XeRVn...@onvoy.com> from Justin Koivisto contained the following:
>Does anyone know what the name of the => operator in PHP is? It is >something that is nearly impossible to search for, and I am not sure if >it even has a name. I know that there has been a couple php-dev people >in here before, so maybe someone kind throw me a bone... ;)
I couldn't find out either so I decided to name it myself. I call it an 'andits' foreach ($key andits $value){... Geddit?
-- Geoff Berrow (put thecat out to email) It's only Usenet, no one dies. My opinions, not the committee's, mine. Simple RFDs http://www.ckdog.co.uk/rfdmaker/
> Does anyone know what the name of the => operator in PHP is? It is > something that is nearly impossible to search for, and I am not sure if > it even has a name.
I never seen a name for it. ...mmmmmh, but if there is no name, i think we should find one for it.
I noticed that Message-ID: <1127804150.fa5fba4a665ee16af6fb52b194e3986e@teranews> from Kirsten contained the following:
>I never seen a name for it. >...mmmmmh, but if there is no name, i think we should find one for it.
See my other post. I'm trying to popularise 'andits'
Could be my major contribution to the open source community :-)
-- Geoff Berrow (put thecat out to email) It's only Usenet, no one dies. My opinions, not the committee's, mine. Simple RFDs http://www.ckdog.co.uk/rfdmaker/
Geoff Berrow wrote: > I noticed that Message-ID: <g7adnSZjsrQAD6XeRVn...@onvoy.com> from > Justin Koivisto contained the following:
>>Does anyone know what the name of the => operator in PHP is? It is >>something that is nearly impossible to search for, and I am not sure if >>it even has a name. I know that there has been a couple php-dev people >>in here before, so maybe someone kind throw me a bone... ;)
> I couldn't find out either so I decided to name it myself. I call it an > 'andits' foreach ($key andits $value){... Geddit?
Now that's funny!
I've been calling the "indirect assignment operator" in the class notes that I've been preparing, but wanted to see if there was an official name...
I think for now I will stick with what I have in the notes. I think that naming an assignment operator in a way that could possibly be confused with a logical operator would just be too confusing for newbies. ;)
Justin Koivisto wrote: > Does anyone know what the name of the => operator in PHP is? It is > something that is nearly impossible to search for, and I am not sure if > it even has a name. I know that there has been a couple php-dev people > in here before, so maybe someone kind throw me a bone... ;)
OK, I've decided to call it "double arrow" as in the source code... Now the php docs just need to be updated to give it the name so that is searchable. Thanks to Chung and Chris Shiflett (off-list) on this one.
I noticed that Message-ID: <2MGdnTpp5aFtpKTeRVn...@onvoy.com> from Justin Koivisto contained the following:
>> I couldn't find out either so I decided to name it myself. I call it an >> 'andits' foreach ($key andits $value){... Geddit?
>Now that's funny!
>I've been calling the "indirect assignment operator" in the class notes >that I've been preparing, but wanted to see if there was an official name...
>I think for now I will stick with what I have in the notes. I think that >naming an assignment operator in a way that could possibly be confused >with a logical operator would just be too confusing for newbies. ;)
Well I wouldn't stress the 'and' part but I see what you mean. However I teach a beginners class and my students don't get confused (well they get pretty confused with logical operators, but that's another story.
Double arrow? Nah, that does nothing. I think the best names at least imply some meaning. I think I'll stick with 'andits'. :-) -- Geoff Berrow (put thecat out to email) It's only Usenet, no one dies. My opinions, not the committee's, mine. Simple RFDs http://www.ckdog.co.uk/rfdmaker/
Geoff Berrow wrote: > I noticed that Message-ID: <2MGdnTpp5aFtpKTeRVn...@onvoy.com> from > Justin Koivisto contained the following:
>>>I couldn't find out either so I decided to name it myself. I call it an >>>'andits' foreach ($key andits $value){... Geddit?
>>Now that's funny!
>>I've been calling the "indirect assignment operator" in the class notes >>that I've been preparing, but wanted to see if there was an official name...
>>I think for now I will stick with what I have in the notes. I think that >>naming an assignment operator in a way that could possibly be confused >>with a logical operator would just be too confusing for newbies. ;)
> Well I wouldn't stress the 'and' part but I see what you mean. However > I teach a beginners class and my students don't get confused (well they > get pretty confused with logical operators, but that's another story.
> Double arrow? Nah, that does nothing. I think the best names at least > imply some meaning. I think I'll stick with 'andits'. :-)
Don't get me wrong, I like it, but IME catchy names like this don't stick. Programmers seem to always fall back on the boring, simple ones. ;)
I noticed that Message-ID: <BY-dncGz7qbO7KTeRVn...@onvoy.com> from Justin Koivisto contained the following:
>> Double arrow? Nah, that does nothing. I think the best names at least >> imply some meaning. I think I'll stick with 'andits'. :-)
>Don't get me wrong, I like it, but IME catchy names like this don't >stick. Programmers seem to always fall back on the boring, simple ones. ;)
Well there's pling...
-- Geoff Berrow (put thecat out to email) It's only Usenet, no one dies. My opinions, not the committee's, mine. Simple RFDs http://www.ckdog.co.uk/rfdmaker/
On Mon, 26 Sep 2005 19:30:20 -0500, Justin Koivisto <jus...@koivi.com> wrote: >Does anyone know what the name of the => operator in PHP is? It is >something that is nearly impossible to search for, and I am not sure if >it even has a name. I know that there has been a couple php-dev people >in here before, so maybe someone kind throw me a bone... ;)
In the parser's scanner it's T_DOUBLE_ARROW, so it's a double arrow.
On Tue, 27 Sep 2005 08:55:43 +0200, with neither quill nor qualm, Kirsten <K.Schu...@feuerwehr-meerbusch.de> quickly quoth:
>Justin Koivisto schrieb: >> Does anyone know what the name of the => operator in PHP is? It is >> something that is nearly impossible to search for, and I am not sure if >> it even has a name. >I never seen a name for it. >...mmmmmh, but if there is no name, i think we should find one for it.
Maybe that's why I'm having trouble wrapping my mind around classes. I don't know the operator sign's name. ;)
How about "egrets" from Equal GREater-Than Sign ?
-- "Simplicity of life, even the barest, is not misery but the very foundation of refinement." --William Morris ----------------------------------- www.diversify.com Comprehensive Website Development
>>I noticed that Message-ID: <g7adnSZjsrQAD6XeRVn...@onvoy.com> from >>Justin Koivisto contained the following:
>>>Does anyone know what the name of the => operator in PHP is? It is >>>something that is nearly impossible to search for, and I am not sure if >>>it even has a name. I know that there has been a couple php-dev people >>>in here before, so maybe someone kind throw me a bone... ;)
>>I couldn't find out either so I decided to name it myself. I call it an >>'andits' foreach ($key andits $value){... Geddit?
> Now that's funny!
> I've been calling the "indirect assignment operator" in the class notes > that I've been preparing, but wanted to see if there was an official name...
Now this is like the Holy Roman Empire which was neither Holy nor Roman, nor (in its later days) an Empire.
Whatever => is, it is not an operator (it's a bit of syntax like a comma ), does not denote assignment, and has not much to do with indirection.
Sklar's book (Learning PHP5) glosses it as 'key/value pair separator', but only in the index as far as I can tell.
as an english pun, it sounds acceptable, however, it would confuse (even more) the non-hacker & the non-english speaking comunity outside the US , i for one, speak spanish, and the joke is not obvious at first glance, so:
es => ' y su ' en => "and it's"
seriously, it doesnt really make that much sense, and remember, u must take internationalization into consideration when u name things like that, so u dont go the ms way: i.e. windows vista: vista, in spanish means "view", (but you probably knew that) however, in lativian, its another story (http://www.activewin.com/awin/comments.asp?HeadlineIndex=30777)
quote:
In Latvian this one will be great : Windows Chicken (that's for Latvian vista)
:end quote
im not fluent in lativian, nor i know where it is spoken, (europe?), but i get this feeling that in the lativian speaking comunity, there is going to be a lot of ppl migrating to linux in late 2006......
so, my suggestion:
=> (check man pages for perl =>, and just copy paste)
Larry Jaques wrote: > On Tue, 27 Sep 2005 08:55:43 +0200, with neither quill nor qualm, > Kirsten <K.Schu...@feuerwehr-meerbusch.de> quickly quoth:
>>Justin Koivisto schrieb:
>>>Does anyone know what the name of the => operator in PHP is? It is >>>something that is nearly impossible to search for, and I am not sure if >>>it even has a name.
>>I never seen a name for it. >>...mmmmmh, but if there is no name, i think we should find one for it.
> Maybe that's why I'm having trouble wrapping my mind around classes. > I don't know the operator sign's name. ;)
=> is an array operator... The indirection operator (->) is used for classes...
> How about "egrets" from Equal GREater-Than Sign ?
Sounds like a bird to me... ;) Also you may not "regret" using it...
On 2005-09-27 06:10:14 +0000, Geoff Berrow <blthe...@ckdog.co.uk> said:
> I noticed that Message-ID: <g7adnSZjsrQAD6XeRVn...@onvoy.com> from > Justin Koivisto contained the following:
>> Does anyone know what the name of the => operator in PHP is? It is >> something that is nearly impossible to search for, and I am not sure if >> it even has a name. I know that there has been a couple php-dev people >> in here before, so maybe someone kind throw me a bone... ;)
> I couldn't find out either so I decided to name it myself. I call it an > 'andits' foreach ($key andits $value){... Geddit?
How ab{oo}t simply calling it "implication". $key IMPLIES $value. It even looks like mathematic symbol for implication...
-- Seks, seksić, seksolatki...<uri: news:pl.soc.seks.moderowana > Close to the middle of the network. We're looking for a center. What if it turns out to be hollow? We could be what is broken... https://hyperreal.info | https://kanaba.info |=> "Szanuj Zieleń!"