Reputation: 5817
Just for my own peace of mind, I am wondering why, in last line, in my AssemblyInfo.fs
file, it is neccessary to add a ()
in order for it to compile. What do you call this syntax?
namespace TestComComponentFSharp
open System.Reflection
open System.Runtime.CompilerServices
open System.Runtime.InteropServices
[<assembly: AssemblyTitle("TestComComponentFSharp")>]
[<assembly: ComVisible(true)>]
[<assembly: Guid("0B684F15-DC37-40C0-A785-EDF1A63BBAF5")>]
[<assembly: AssemblyKeyFile("KeyFile.snk")>]
[<assembly: AssemblyVersion("1.0.0.0")>]
[<assembly: AssemblyFileVersion("1.0.0.0")>]
()
Upvotes: 2
Views: 133
Reputation: 2291
You need something to apply those assembly attributes to. That whats the empty () or do() is for. Its called an "Empty Expression" - it returns a unit.
Upvotes: 5