This is the
talk page for discussing improvements to the
Relational operator article. This is not a forum for general discussion of the article's subject. |
Article policies
|
Find sources: Google ( books · news · scholar · free images · WP refs) · FENS · JSTOR · TWL |
This article is rated C-class on Wikipedia's
content assessment scale. It is of interest to the following WikiProjects: | |||||||||||||||||||||||||||||||||||||||||
|
What about Congruent to, as opposed to equal to? -- Svippong 13:33, 12 April 2006 (UTC)
Congruent to tends to mean something geometric--Relational operators aren't geometric -- 223ankher 23:35, 17 May 2006 (UTC)
eq, le, lt, etc... ? Bytebear 05:32, 19 April 2007 (UTC)
The article " ==" is a horrible name for an article. (I had to create a redirect named "eqeq" to the article in order to use the {{ mergefrom}} template, which is why you don't see "==" there). It would seem reasonable to merge most of the content into this article. + m t 01:26, 16 July 2007 (UTC)
Table 6.1 (page177) of "C Primer Plus" 4th Ed. by Stephen Prata tells me these are "Relational Operators". The Comparison operator article has almost identical information to this article, and also has fewer links. Merge? + m t 02:26, 19 July 2007 (UTC)
Most programming languages distinguish between relational and equality operations. The relational article might call out that equality is sometimes viewed as a special case of relational, I think it is worthwhile having two articles (I agree the == is a horrible title).
Both articles do need more work. Derek farn 19:38, 19 July 2007 (UTC)
4.0 * 3.0
may not == 2.0 * 6.0
due to floating point things). +
m
t
20:00, 20 July 2007 (UTC)
Just a quarry about the doesn't equal sign in print, E.G ≠. Is there an Alt command to use it on my keyboard? 68.205.161.84 17:12, 1 September 2007 (UTC)
Ok, now let's see if "most shells" use these operators:
Ghettoblaster ( talk) 22:21, 11 November 2008 (UTC)
The article states that the expression a^ = b^ in Pascal tests whether a and b are physically equal (same entity) as opposed to structurally equal (same content).
This is not correct. In Pascal the ^ is the pointer dereferencing operator. The expression a^ dereferences pointer a, it returns the value of the target that a points to.
Therefore, the expression a^ = b^ tests whether the target of a has the same value as the target of b.
Even if the expression evaluates true, it does not mean that a and b point to the same target.
Instead, the expression a = b tests whether a and b point to the same target (assuming a and b are pointers).
Thus in Pascal, a = b tests shallow equality if a and b are pointers, it tests deep equality if a and b are not pointers. — Preceding unsigned comment added by 37.160.116.23 ( talk) 22:23, 15 October 2013 (UTC)
Find all balances and account numbers 99.188.191.33 ( talk) 15:49, 31 January 2023 (UTC)
The redirect != has been listed at redirects for discussion to determine whether its use and function meets the redirect guidelines. Readers of this page are welcome to comment on this redirect at {{ Section link}}: required section parameter(s) missing until a consensus is reached. Tartar Torte 01:35, 21 May 2023 (UTC)
The article states "Equality is used in many programming language constructs and data types. It is used to test if an element already exists in a set, or to access to a value through a key. It is used in switch statements to dispatch the control flow to the correct branch, and during the unification process in logic programming." This is hard for me to understand could this be more elaborated, preferably with examples. In which languages testing if an element is in a set is done with the equal sign? In which languages equality is used to access to(?) a value through a key. etc
And shouldn't it be 'the equality operator is used ...' . BartYgor ( talk) 14:04, 23 October 2023 (UTC)
This is the
talk page for discussing improvements to the
Relational operator article. This is not a forum for general discussion of the article's subject. |
Article policies
|
Find sources: Google ( books · news · scholar · free images · WP refs) · FENS · JSTOR · TWL |
This article is rated C-class on Wikipedia's
content assessment scale. It is of interest to the following WikiProjects: | |||||||||||||||||||||||||||||||||||||||||
|
What about Congruent to, as opposed to equal to? -- Svippong 13:33, 12 April 2006 (UTC)
Congruent to tends to mean something geometric--Relational operators aren't geometric -- 223ankher 23:35, 17 May 2006 (UTC)
eq, le, lt, etc... ? Bytebear 05:32, 19 April 2007 (UTC)
The article " ==" is a horrible name for an article. (I had to create a redirect named "eqeq" to the article in order to use the {{ mergefrom}} template, which is why you don't see "==" there). It would seem reasonable to merge most of the content into this article. + m t 01:26, 16 July 2007 (UTC)
Table 6.1 (page177) of "C Primer Plus" 4th Ed. by Stephen Prata tells me these are "Relational Operators". The Comparison operator article has almost identical information to this article, and also has fewer links. Merge? + m t 02:26, 19 July 2007 (UTC)
Most programming languages distinguish between relational and equality operations. The relational article might call out that equality is sometimes viewed as a special case of relational, I think it is worthwhile having two articles (I agree the == is a horrible title).
Both articles do need more work. Derek farn 19:38, 19 July 2007 (UTC)
4.0 * 3.0
may not == 2.0 * 6.0
due to floating point things). +
m
t
20:00, 20 July 2007 (UTC)
Just a quarry about the doesn't equal sign in print, E.G ≠. Is there an Alt command to use it on my keyboard? 68.205.161.84 17:12, 1 September 2007 (UTC)
Ok, now let's see if "most shells" use these operators:
Ghettoblaster ( talk) 22:21, 11 November 2008 (UTC)
The article states that the expression a^ = b^ in Pascal tests whether a and b are physically equal (same entity) as opposed to structurally equal (same content).
This is not correct. In Pascal the ^ is the pointer dereferencing operator. The expression a^ dereferences pointer a, it returns the value of the target that a points to.
Therefore, the expression a^ = b^ tests whether the target of a has the same value as the target of b.
Even if the expression evaluates true, it does not mean that a and b point to the same target.
Instead, the expression a = b tests whether a and b point to the same target (assuming a and b are pointers).
Thus in Pascal, a = b tests shallow equality if a and b are pointers, it tests deep equality if a and b are not pointers. — Preceding unsigned comment added by 37.160.116.23 ( talk) 22:23, 15 October 2013 (UTC)
Find all balances and account numbers 99.188.191.33 ( talk) 15:49, 31 January 2023 (UTC)
The redirect != has been listed at redirects for discussion to determine whether its use and function meets the redirect guidelines. Readers of this page are welcome to comment on this redirect at {{ Section link}}: required section parameter(s) missing until a consensus is reached. Tartar Torte 01:35, 21 May 2023 (UTC)
The article states "Equality is used in many programming language constructs and data types. It is used to test if an element already exists in a set, or to access to a value through a key. It is used in switch statements to dispatch the control flow to the correct branch, and during the unification process in logic programming." This is hard for me to understand could this be more elaborated, preferably with examples. In which languages testing if an element is in a set is done with the equal sign? In which languages equality is used to access to(?) a value through a key. etc
And shouldn't it be 'the equality operator is used ...' . BartYgor ( talk) 14:04, 23 October 2023 (UTC)