I am new to F #, but I am very familiar with C #. And I was wondering if there is a difference between the declaration of top-level modules and local modules (e.g., performance, etc.). Also, the namespace declaration is not required for top-level modules (it is part of the module declaration). I cannot find anything in the documentation ( MSDN F # Modules ), indicating other differences.
Basically, based on the C # world, I prefer
above
Given that in both versions there will be only one module in the file, does version 2 have any drawbacks (compared to version 1)?
module f #
Stephan kunz
source share