Re: Re[2]: [Haskell-cafe] Fractional/negative fixity?

2006-11-07 Thread Nicolas Frisby

I don't see how it's too complex. Isn't

 infixl ??
 prec ?? < $
 (??) = whenOperator

exactly what you want to say?

Sure you can solve the problem with negative fixities, but that's less
expressive than the above (the total order is actually an
over-specification). You want ?? to bind more tightly than does $;
that's exactly what this approach would let you specify.

When conjuring a number less than 0, what makes -1 a more appropriate
choice than -2? There's really no answer to that question. Fractional
fixities make it even worse.

Nick

On 11/6/06, Bulat Ziganshin <[EMAIL PROTECTED]> wrote:

Hello Henning,

Monday, November 6, 2006, 1:27:54 PM, you wrote:

>> print msg `on` mode==debug
>>
>> but failed because my code frequently contains '$' and there is no way
>> to define operation with a lower precedence

> This could be solved by the solutions proposed in this thread:
>
> http://www.haskell.org/pipermail/haskell-cafe/2006-October/018923.html

it's too complex for my purposes. -1 priority is enough


--
Best regards,
 Bulatmailto:[EMAIL PROTECTED]

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: Re[2]: [Haskell-cafe] Fractional/negative fixity?

2006-11-07 Thread Lennart Augustsson

But DEC's language FOCAL had fractional line numbers. :)

On Nov 7, 2006, at 06:00 , Henning Thielemann wrote:



On Mon, 6 Nov 2006, Bulat Ziganshin wrote:


Hello Henning,

Monday, November 6, 2006, 1:27:54 PM, you wrote:


print msg `on` mode==debug

but failed because my code frequently contains '$' and there is  
no way

to define operation with a lower precedence



This could be solved by the solutions proposed in this thread:

http://www.haskell.org/pipermail/haskell-cafe/2006-October/ 
018923.html


it's too complex for my purposes. -1 priority is enough


This reminds me on good old BASIC programming days, where we numbered
lines in steps of 10, in order to be able insert lines later.
Unfortunately, BASIC never supported negative nor fractional line  
numbers.

:-)
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re[2]: [Haskell-cafe] Fractional/negative fixity?

2006-11-07 Thread Henning Thielemann

On Mon, 6 Nov 2006, Bulat Ziganshin wrote:

> Hello Henning,
> 
> Monday, November 6, 2006, 1:27:54 PM, you wrote:
> 
> >> print msg `on` mode==debug
> >> 
> >> but failed because my code frequently contains '$' and there is no way
> >> to define operation with a lower precedence
> 
> > This could be solved by the solutions proposed in this thread:
> > 
> > http://www.haskell.org/pipermail/haskell-cafe/2006-October/018923.html
> 
> it's too complex for my purposes. -1 priority is enough

This reminds me on good old BASIC programming days, where we numbered
lines in steps of 10, in order to be able insert lines later.  
Unfortunately, BASIC never supported negative nor fractional line numbers.
:-)
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re[2]: [Haskell-cafe] Fractional/negative fixity?

2006-11-06 Thread Bulat Ziganshin
Hello Henning,

Monday, November 6, 2006, 1:27:54 PM, you wrote:

>> print msg `on` mode==debug
>> 
>> but failed because my code frequently contains '$' and there is no way
>> to define operation with a lower precedence

> This could be solved by the solutions proposed in this thread:
> 
> http://www.haskell.org/pipermail/haskell-cafe/2006-October/018923.html

it's too complex for my purposes. -1 priority is enough


-- 
Best regards,
 Bulatmailto:[EMAIL PROTECTED]

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe