Python and Flaming Thunder

Dave Parker daveparker at flamingthunder.com
Sat Jun 28 13:47:19 EDT 2008


On Jun 7, 10:24 am, Sam Denton <stden... at sbcglobal.net> wrote:
> I've long believed that '=' should be banned from programming languages.
>   Use '==' for equality tests, and ':=' for assignments.

That's an interesting suggestion that I don't recall hearing anyone
else ever mention.

On Jun 7, 10:24 am, Sam Denton <stden... at sbcglobal.net> wrote:
> John Salerno wrote:
> > "Dave Parker" <davepar... at flamingthunder.com> wrote in message
> >news:a95c09d9-94c3-4dac-9439-9176038d93d9 at w8g2000prd.googlegroups.com...
> > On May 20, 7:05 pm, Collin <collinye... at shaw.ca> 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.- Hide quoted text -
>
> - Show quoted text -




More information about the Python-list mailing list