[#3479] Missing .document files for ext/ libraries — Brian Candler <B.Candler@...>

The ri documentation for zlib, strscan and iconv doesn't get built by 'make

12 messages 2004/10/06

[#3492] Re: ANN: Free-form-operators patch — Markus <markus@...>

> In message "Re: ANN: Free-form-operators patch"

15 messages 2004/10/11
[#3493] Re: ANN: Free-form-operators patch — Yukihiro Matsumoto <matz@...> 2004/10/11

Hi,

[#3495] Re: ANN: Free-form-operators patch — Markus <markus@...> 2004/10/12

On Mon, 2004-10-11 at 16:16, Yukihiro Matsumoto wrote:

[#3561] 1.8.2 - what can we do to help? — Dave Thomas <dave@...>

Folks:

23 messages 2004/10/26
[#3562] Re: 1.8.2 - what can we do to help? — Yukihiro Matsumoto <matz@...> 2004/10/27

Hi,

Re: ANN: Free-form-operators patch

From: Markus <markus@...>
Date: 2004-10-11 14:45:55 UTC
List: ruby-core #3491
> "Yukihiro Matsumoto" <matz@ruby-lang.org> schrieb im Newsbeitrag
> > * I am against for user defined operator precedence.  It's just
> >   wrong.  So forget about that idea.  All user defined operators
> >   should have same precedence, even if they are allowed.
> 
> On Mon, 2004-10-11 at 02:19, Robert Klemme wrote:
> +2 (Also, since precedence is typically implemented in the parser I can
> imagine that user defined precedence makes for awful changes in the parser
> which has considerable complexity already AFAIK.)

     The parser part (at least in isolation) isn't too bad.  Instead of
one operator token (tGENERIC_OP) you have a set of them (tOP1..tOP9 say)
which have a range of precedences by varying semantics.  The user then
gets to choose which token to use for each op.  Since these could also
be used for many/most of the built-in operators, it might actually
simplify the parser.

     The complication come when you start to work out the "scope" of a
declared operator precedence; if it is very global the chance of
conflict (I want it to be 7 in my library, you want it to be 3 in yours,
and poor Joe requires both libraries) goes way up.  But if it is not as
global as global can be, there are other problems.  The best I have been
able to do is come up with a compromise that clearly has both problems.

-- Markus



In This Thread

Prev Next