Brian Hulley schrieb:
> Christian Maeder wrote:
>> (In fact, maybe for haskell' "$" could be changed to a keyword.)
>>   
> 
> Alternatively the # symbol could be removed from the pool of symbol
> chars and used to construct syntactic sugar so you could use
> 
>      f = id #$ \_ -> []
> 
> to mean exactly
> 
>      f = id (\_ -> [])

For this case "#$" would not be needed when you could write:
    f = id \ _ -> []

A keyword "#$", if one really wanted it, would make sense to replace the
infix application "id $ g x" with (the prefix expr) "id #$ g x", though.

Cheers Christian
_______________________________________________
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users

Reply via email to