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

Home » Imported messages » comp.lang.php » error message I don understand
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Nasty language semantics (Was: error message I don understand) [message #174934 is a reply to message #174927] Mon, 18 July 2011 18:31 Go to previous messageGo to previous message
August Karlstrom is currently offline  August Karlstrom
Messages: 16
Registered: October 2010
Karma:
Junior Member
On 2011-07-18 17:55, Thomas 'PointedEars' Lahn wrote:
> August Karlstrom wrote:
>> Don't be silly. There are several programming languages in which `='
>> denote (surprise) equality.
>
> And I have found all programs written in any of those programming languages
> to be more difficult to maintain than the rest. One such language is
> VBScript (which is particularly bad designed in other respects as well).

That's because they have been badly designed in other respects as you
mention.

> It is no coincidence that all modern higher-level programming languages make
> a syntactical and not only a contextual difference between assignment and
> comparison

Yes, that is a good thing.

> I would always consider it a result of bad language design for a (built-in)
> operator to have such very different meanings.

Agreed. The assignment symbol should ideally be a left arrow but as we
all know it is not available on a standard keyboard or in the ASCII
character set. I think `:=' is a reasonable alternative.

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
Previous Topic: Ouion Movement, Roun Time (Floating Point Time)
Next Topic: [MEMCACHED] Is there a way to get the expiration of a key?
Goto Forum:
  

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

Current Time: Tue Nov 26 20:23:38 GMT 2024

Total time taken to generate the page: 0.04424 seconds