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
Re: Nasty language semantics (Was: error message I don understand) [message #174910 is a reply to message #174909] Sun, 17 July 2011 18:12 Go to previous messageGo to previous message
Jerry Stuckle is currently offline  Jerry Stuckle
Messages: 2598
Registered: September 2010
Karma:
Senior Member
On 7/17/2011 1:47 PM, August Karlstrom wrote:
> On 2011-07-17 18:31, Peter H. Coffin wrote:
>> On Sun, 17 Jul 2011 16:50:28 +0200, August Karlstrom wrote:
>>
>>> On 2011-07-17 15:03, Jerry Stuckle wrote:
>>>
>>>> This isn't mathematics - it is programming, as people have told you
>>>> before. If you want mathematics, get a chalkboard.
>>>
>>> Don't be silly. There are several programming languages in which `='
>>> denote (surprise) equality.
>>
>> Very few that use it alone.
>
> Pascal, Modula-2, Eiffel and Ada all use `=' for equality and `:=' for
> assignment.
>

Yup, four little used languages use it. Versus dozens of heavily used
languages.

>> They may set the context with a previous
>> "LET" or "test" or a grouping indicator, or, if they don't, they have
>> very rigorous typing such that assignments are statements alone and do
>> NOT return anything that could possibly be used in a logical/comparative
>> way, not even a success or failure.
>
> Yes, and for a good reason - the statement-expression separation (or
> maybe we should say side-effect free expressions) is related to the
> sound principle of command-query separation.
>
> August
>

Yup, and you wonder why such languages are so seldom used - while others
such as C, C++, Java and PHP are used much more than any of the ones you
mentioned, at least in production?

As I said - you don't like the syntax, create your own language with
whatever syntax you want. No one is forcing you to use PHP or any other
language with syntax you don't like.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex(at)attglobal(dot)net
==================
[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: Sat Nov 23 09:18:52 GMT 2024

Total time taken to generate the page: 0.04988 seconds