Re: 1/2 =?



Robert Maas, see http://tinyurl.com/uh3t wrote:
From: akarl <fusionfive@xxxxxxxxx>
Or Oberon-2. It has only four (!) precedence levels: logical not,
multiplicative operators, additive operators and relational operators.

No parentheses and no assignment?? Are you sure? Does it have any token-level syntax such as string literals etc.?

Sure, it has all you mention, but assignment is not an operator, it's part of an assignment statement. Of course, parenthesized expressions are evaluated first, but that's obvious and not something you have to remember.


In any case, Lisp has it beat out, with ony token-level syntax and
parens, no other syntax at all.

Since this is comp.lang.c I mentioned the simplest *procedural* language, Oberon-2.


Forth has Lisp beat out, not even parens, but that makes Forth code
impossible to visually parse. You know the story of Goldilocks and the
three bears? Lisp is "just right".

C and Lisp are languages from completely different families.

August
.



Relevant Pages

  • Re: ISO Modula-2 "gotcha"
    ... logical negation, ... multiplicative operators, ... relational operators, ...
    (comp.lang.modula2)
  • Re: ISO Modula-2 "gotcha"
    ... logical negation, ... multiplicative operators, ... relational operators, ...
    (comp.lang.modula2)