Re: dynamic precedence, was Dangling else



Chris F Clark <cfc@xxxxxxxxxxxxxxxxxxxx> wrote:

I can't remember which languages (besides A68) allowed one to modify
the precedence of operators, however there must have been a few,
especially if one includes the "extensible languages" that were once
popular and are now mostly forgotten.

Many functional programming languages allow you to specify the precedence
and associativity of operators, including ML and Haskell.

Tony.
--
f.a.n.finch <dot@xxxxxxxx> http://dotat.at/
NORWEGIAN BASIN: IN EAST, SOUTHERLY GALE 8 TO STORM 10, DECREASING 6 TO GALE
8 LATER. RAIN. MODERATE OCCASIONALLY POOR. IN WEST, VARIABLE BECOMING NORTH OR
NORTHWEST 4, INCREASING 5 OR 6 LATER. RAIN THEN FAIR. MODERATE OR GOOD.
.



Relevant Pages

  • Re: Inconsistent formulas
    ... languages, I think you will find this to be very unusual operator precedence. ... In mathematics, exponentiation is represented by a superscripted ... to the Excel interpretation. ...
    (microsoft.public.excel)
  • Re: The power difference between a macro and a function
    ... To put it another way, "understanding precedence" isn't the goal or a good thing, it is a cost/overhead/a bad thing. ... Another group of people reject the notion of prefix or postfix languages without having tried them, out of a gut feeling to stick with what they are used to. ... Of course, there are also people who tried both and indeed choose infix languages, but others make the switch. ... mathematics to remove ambiguity but we don't because we know the expressions are much more comprehensible when written in conventional style. ...
    (comp.lang.lisp)
  • Re: Sequence points
    ... increment it (* has higher precedence) or increment src, ... the language that most very similar languages do not share. ... It is a very common construct -- I'd say more common than ...
    (comp.programming)
  • Re: The power difference between a macro and a function
    ... Note that Harrop doesn't dispute that concentrating on precedence isn't ... Of the fraction that do use arithmetic expressions, ... that's not at all like programming. ... infix languages would have the same precedence and associtivity rules. ...
    (comp.lang.lisp)
  • Re: Possibilities of Return (with parameters???)
    ... >with other languages and their saner precedence rules makes it ... A proper analysis, involving the ... precedence and associativity of the two operators involved is *needed*. ... Dan Pop ...
    (comp.lang.c)