Python slang
Marko Rauhamaa
marko at pacujo.net
Thu Aug 11 03:15:14 EDT 2016
Lawrence D’Oliveiro <lawrencedo99 at gmail.com>:
> On Thursday, August 11, 2016 at 7:18:28 AM UTC+12, Marko Rauhamaa wrote:
>
>> Oh, there's of course COBOL:
>>
>> ADD X TO Y GIVING RESULT
>
> I think COBOL has the same usage of “=” as BASIC, as assignment or
> equality comparison, depending on context.
There's the COMPUTE verb that works a bit like that. However, the
ADD X TO Y [GIVING Z]
MULTIPLY X BY Y [GIVING Z]
DIVIDE X BY Y [GIVING Z]
is more traditional, I would guess.
Also, for simple assignments, there's MOVE:
MOVE 'INDIA' TO WS-COUNTRY.
<URL: http://www.tutorialspoint.com/cobol/cobol_basic_verbs.htm>
My uncle made a career out of COBOL programming. He described his work
as consisting mostly of MOVE statements.
Marko
More information about the Python-list
mailing list