r/programming • • Aug 14 '18

Announcing F# 4.5

https://blogs.msdn.microsoft.com/dotnet/2018/08/14/announcing-f-4-5/
110 Upvotes

67 comments sorted by

View all comments

2

u/[deleted] Aug 15 '18

TIL let fn() = is correct style

6

u/nikofeyn Aug 15 '18

is it? i have seen both

let example() = ...

and

let example () = ...

i personally find the second more clear in the function definition since you are defining a function that takes () as its parameter and not defining a function with zero arguments.

although when calling, i feel that either either example() or example () is fine, and i have probably used the former more often.

2

u/needadvicebadly Aug 15 '18

same here, but I noticed that Don Syme amd most of the core language people use the let example() = style. When I was learning I found it confusing becusae initially I thought it was some special syntax for some reason