At http://diditwith.net , I see that in F # it is not necessary to pass parameters to a function that otherwise requires them. The language automatically activates the result and the output parameter in the tuple. (!)
Is it some kind of side effect (pardon of puns) of general language mechanics or a feature that was specifically formulated in the F # specification and intentionally programmed into the language?
This is an awesome feature, and if it was explicitly placed in F #, I wonder what other similar piles of such gold are hidden in the language, because I looked at dozens of web pages and read three books (D. Sime, T. Petrichek and K. Smith), and I did not see this particular trick at all.
EDIT: As Mr. Petrichek replied below, he mentions this function in at least two places in his book Functional Programming in the Real World. My bad.
source share