FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » using same variable twice on same page
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: OT: Assignment operator (Was: using same variable twice on same page) [message #171360 is a reply to message #171358] Thu, 30 December 2010 19:45 Go to previous messageGo to previous message
August Karlstrom is currently offline  August Karlstrom
Messages: 16
Registered: October 2010
Karma:
Junior Member
On 2010-12-30 20:21, richard wrote:
> On Thu, 30 Dec 2010 15:35:10 +0100, August Karlstrom wrote:
>> The equal sign `=' has been used in mathematics since medieval times to
>> denote equality. To use `==' for equality and `=' for something else
>> (assignment) is not sensible.
>
> Not really. As in various programming languages dictate, usage and display
> can be quite different.
>
> In BASIC and simpler low level languages, we say<>, meaning "not equal"
> while in the higher level languages we say, !=.

The symbols `/=' and `#' are also used in some high-level languages. It
is unfortunate that the not-equal-to sign is neither on a standard
keyboard nor in the 7-bit ASCII table. As a general guideline, however,
I don't think language designers should redefine the meaning of well
known symbols from mathematics. Or why not let `+' be the
increment-by-one operator and `++' denote addition? Why not? After all,
as Jerry Stuckle mentioned, programming is not mathematics.


/August

--
The competent programmer is fully aware of the limited size of his own
skull. He therefore approaches his task with full humility, and avoids
clever tricks like the plague. --Edsger Dijkstra
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: AND in the if statement
Next Topic: login script using file, not mysql
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Fri Nov 22 19:58:57 GMT 2024

Total time taken to generate the page: 0.03909 seconds