[Oberon] Expression to the left of the variable

eas lab lab.eas at gmail.com
Sun May 16 17:33:33 CEST 2021


If you've come up via hardware & asm you KNOW that
left-to-right=> corresponds to REAL/ACTUAL sequence of events.
Ie. for: C := A + B : <A is accessed first & C is accessed last>
hence: A + B -> C is logical.
OTOH: "Let C = A + B" corresponds to: C = FunctionRandoniser(A,B)
where the complexity of the Function is hidden, and the result is emphasised.
 ---CRG.

On 5/9/21, Diego Sardina <dsar at eml.cc> wrote:
> On Sun, May 9, 2021, at 3:46 PM, August Karlstrom wrote:
>>
>> With the assigned variable to the right, the programmer needs to
>> visually scan the entire line (or maybe more than one line) to find out
>> what kind of statement it is. When the assigned variable comes first,
>> the assignment symbol is close to the beginning of the line which in my
>> opinion is clearer.
>>
>
> I guess the viewpoint is the compiler in those exercises, not the
> programmer.
>
> --
> Diego Sardina
> --
> Oberon at lists.inf.ethz.ch mailing list for ETH Oberon and related systems
> https://lists.inf.ethz.ch/mailman/listinfo/oberon
>


More information about the Oberon mailing list