Python slang
Michael Torrie
torriem at gmail.com
Wed Aug 10 19:57:09 EDT 2016
On 08/10/2016 10:19 AM, Random832 wrote:
> On Wed, Aug 10, 2016, at 07:59, Dennis Lee Bieber wrote:
>> The use of = also has a long history... FORTRAN (where the comparison
>> was .EQ.), BASIC (granted, K&K required assignment to start with the
>> keyword LET, so the use of = was mainly a delimiter between target and
>> expression being assigned).
>
> Visual Basic actually uses = for both assignment and comparison
> *without* the Let keyword, it gets by on the fact that assignment is not
> an expression.
But the grammar must still be a bit complex as sometimes the LHS of the
= is an expression, as well as the RHS. But I guess context makes it
all work. Still I've always thought the grammars for modern BASIC with
all its baggage must make for a complex grammar.
More information about the Python-list
mailing list