[Haskell-cafe] Comma in the front

Bulat Ziganshin bulat.ziganshin at gmail.com
Fri Jul 14 02:37:44 EDT 2006


Hello Tomasz,

Friday, July 14, 2006, 9:31:32 AM, you wrote:

>> There might be issues with tuples though, for example (1,2,) would be
>> the (,) tuple and not the (,,) tuple, which is a bit weird.

> Besides, it might be a bit more natural if (1,2,) was a shorthand for
(\x ->> (1,2,x))

in haskell-prime list there was a proposal to use '?' for such things:

(1,2,?)

only problem is what it's hard to define exactly where the lambda
should arise:

(1,2,\x->x)
(\x -> (1,2,x))

or even at some more outer level. aside of this, it would be very handy
addition to various existing partial application styles:

f a
`f` a
a `f`
(*2)
(2*)
(*)


-- 
Best regards,
 Bulat                            mailto:Bulat.Ziganshin at gmail.com



More information about the Haskell-Cafe mailing list