Nimrod language

spir denis.spir at gmail.com
Sat Jan 1 15:08:56 PST 2011


This language looks *very* interesting and sensibly designed. The author seems to have taken, in addition to much input from C-like languages and Python, the best of the Pascal line tradition. Also, he obviously "dared" getting rid of some legacy garbage. Unfortunately, not all, and took dome more. (Even reproduced "elif" and kept the stupid ':' of Python ;-).

On Sat, 01 Jan 2011 13:00:15 -0500
bearophile <bearophileHUGS at lycos.com> wrote:

> I show some Nimrod features [...]

From the tutorial:
"Parameters are constant in the procedure body. Their value cannot be changed because this allows the compiler to implement parameter passing in the most efficient way. If the procedure needs to modify the argument for the caller, a var parameter can be used"

Bravo! For me, the primary effect is not allowing optimisation, but that now "parameter" means parameter; so that one can reason about the code.


Denis
-- -- -- -- -- -- --
vit esse estrany ☣

spir.wikidot.com



More information about the Digitalmars-d mailing list