Larry Wall <[EMAIL PROTECTED]> writes:

> : Why not use a 16 bit int and specify that languages should use
> : default precedence levels spread through the range but keeping the
> : bottom 8 bits all zero. That gives 255 levels between '3' and '4'.
> : Seems like enough to me!
> : 
> : Floating point seems like over-egging the omelette.
> 
> It's also under-egging the omelette, and not just because you
> eventually run out of bits.  I don't think either integer or floating
> point is the best solution, because in either case you have to remember
> separately how many levels of derivation from the standard precedence
> levels you are, so you know which bit to flip, or which increment to
> add or subtract from the floater.

On this subject, has it been considered doing it the Cecil way?

http://www.cs.washington.edu/research/projects/cecil/www/Release/doc-cecil-lang/cecil-spec-37.html
(no numbered priorities, but a partial-order relation on operators)

--
Pixel
programming languages addict      http://merd.net/pixel/language-study/

Reply via email to