[Oberon] Easter eggs in Oberon

Skulski, Wojciech skulski at pas.rochester.edu
Wed Apr 15 19:46:25 CEST 2020


August:

> Why do you have to change THREE things when going from INTEGER to REAL
>     i := i DIV 5;
>     r := FLT(i) / 5.0
> The obvious drawback of having to use FLT and FLOOR is that it makes expressions harder to read.

I would advocate FLOAT rather than FLT and the expressions would be easier. The language opted for three-letter acronyms, probably inspired by electrical engineering habits. Not sure about this heritage, but this is how it smells to me. Not quite consistently, because FLOOR would be FLR, which was probably too much even for the electrical engineer. 

In any case, three letter acronyms look awful to me despite spending over twenty years in electrical engineering. On the other hand, I am grateful to language designers for BEGIN and WHILE still being full words rather than BGN and WHL, which they could have been. 

Wojtek


More information about the Oberon mailing list