Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I don't know F# but the reference only mentions the `f a b` syntax.[1]

`f(a, b)` looks like a call to a function that takes a single tuple as its argument. So I would expect `f` to have the type signature `A * B -> C` instead of `A -> B -> C`. Is my intuition wrong? If it is, then what does F# use the parenthetical syntax for?

[1] https://learn.microsoft.com/en-us/dotnet/fsharp/language-ref...



Methods from the .net framework and other libraries are called with a tuple of argument, since they are not compatible with the native F# was of calling functions.


I mean to be completely bad faith pedantic, yeah that's still f a b, but obviously not the point being discussed here.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: