[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: expressions vs. statements
Tony Kimball <alk@pobox.com> writes:
> : It isn't just that. It's the bugs caused by unintentional use of "="
> : when the programmer wanted "==".
>
> That's why = is a bad choice for :=. '=' is a declarative statement,
> not an imperative one, in the global nomenclature.
I agree.
However, having it be a nonambiguous statment of any kind is of more
value than having it be a declarative statement.
I wouldn't have chosen "=" for assignment , but I prefer its use in
Python to its use in C.
-Justin