John Salerno wrote:
"Dave Parker" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]
On May 20, 7:05 pm, Collin <[EMAIL PROTECTED]> wrote:

---
For example, consider the two statements:

     x = 8
     x = 10

The reaction from most math teachers (and kids) was "one of those is
wrong because x can't equal 2 different things at the same time".
---

Aw, come on. I'm a novice programmer but even after reading the most basic of introductions to a programming language I can tell that x is being assigned one value, then another.

I've long believed that '=' should be banned from programming languages. Use '==' for equality tests, and ':=' for assignments.
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to