News for hackers. Stuff that matters.
Re:The Missing Semester of Your CS Education by nequo on Sunday February 26, 2023 @03:18PM (#34948947)
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...

Re:The Missing Semester of Your CS Education by bazoom42 on Sunday February 26, 2023 @05:08PM (#34950060)
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.
Re:The Missing Semester of Your CS Education by Eji1700 on Monday February 27, 2023 @02:28AM (#34953954)
I mean to be completely bad faith pedantic, yeah that's still f a b, but obviously not the point being discussed here.