Re: left and right sections extended

2011-09-30 Thread Lennart Augustsson
I'm not convinced there are enough use cases to warrant the extra complexity. -- Lennart (iPhone) On Sep 30, 2011, at 14:21, Christian Maeder wrote: > Hi, > > the following sections are currently legal in Haskell: > > (a + b +) and (++ a ++ b) > > because + is left and ++ is right assoc

left and right sections extended

2011-09-30 Thread Christian Maeder
Hi, the following sections are currently legal in Haskell: (a + b +) and (++ a ++ b) because + is left and ++ is right associative. I would like to write (+ 1 +) and (++ " " ++) as legal generalized sections, too, to stay for (\ a -> (a + 1 +)) and (\ a b -> a ++ " " ++ b) respectively