[Haskell-cafe] Re: Sugar for function application
Maciej Piechotka
uzytkownik2 at gmail.com
Tue Mar 23 22:48:21 EDT 2010
On Tue, 2010-03-23 at 22:23 -0400, Brandon S. Allbery KF8NH wrote:
> On Mar 23, 2010, at 13:39 , Ertugrul Soeylemez wrote:
> > code look worse: layout-style syntactic sugar for function
> > application.
> > Here is an example of what it might look like:
> >
> > function $$ anArgument
> > sin (x^2)
> > anotherArgument
> > f $ x + 3
>
> Doesn't layout already do this?
>
> function arg1
> arg2
> arg3
>
As I understend
function $$ sin x
y
z
is
function (sin x) (y)
function sin x
y
z
is
function (sin) (x) (y) (z)
function $ sin x
y
z
is
function (sin (x) (y) (z))
Regards
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part
Url : http://www.haskell.org/pipermail/haskell-cafe/attachments/20100323/c5a279b2/attachment.bin
More information about the Haskell-Cafe
mailing list