Re: How to name variables in a program?
- From: "Phlip" <phlip_cpp@xxxxxxxxx>
- Date: Mon, 30 May 2005 18:30:36 GMT
August Karlstrom wrote:
> The `=' symbol has been used for ages (and still is)
> to denote equality. To use `=' for assignment and `==' for equality is
> just downright stupid. Moreover it's something that has to be explained
> in every introduction to a language from the C syntax family:
>
> "`x = x + y;' might seem like a strange statement, but..."
There's a world of difference between a software program and a math proof.
(Specifically, the former works closer to reality.)
Explaining that to newbs will help explain why _nothing_ obeys pure math,
not = nor + nor * nor f() nor anything else in a programming language.
--
Phlip
http://www.c2.com/cgi/wiki?ZeekLand
.
- Follow-Ups:
- Re: How to name variables in a program?
- From: August Karlstrom
- Re: How to name variables in a program?
- References:
- How to name variables in a program?
- From: SerGioGio
- Re: How to name variables in a program?
- From: Phlip
- Re: How to name variables in a program?
- From: August Karlstrom
- Re: How to name variables in a program?
- From: Phlip
- Re: How to name variables in a program?
- From: August Karlstrom
- How to name variables in a program?
- Prev by Date: Re: How to name variables in a program?
- Next by Date: Re: How to name variables in a program?
- Previous by thread: Re: How to name variables in a program?
- Next by thread: Re: How to name variables in a program?
- Index(es):