[Oberon] Why macros were not implemented in oberon language?

Diego Sardina sardinadiego at gmail.com
Sun Jul 6 18:14:09 CEST 2014

Hi there,

> Maybe I am wrong and miss some point here. Someone could explain to me
why there are no macros in Oberon?

In a high level language, like Oberon, it doesn't make sense to have two
constructs with the same semantic, i.e. two equal procedures P and Q
(normal and inline) will exhibit the same behaviour in the entire program.
The only difference is how they will be placed in the call site and this is
the business of the code generator, and since the performance's result is
platform dependent it shouldn't be left to the programmer how and when a
procedure has to be inlined or not.

And remember: There should be one -- and preferably only one -- obvious way
to do it.

Diego Sardina
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.inf.ethz.ch/pipermail/oberon/attachments/20140706/7a5d722b/attachment.html 

More information about the Oberon mailing list