I thought modules were compiled to static class .NET IL code. I can open namespaces and modules, but why not static classes?
printfn "Hello, World!"
open System.Console
WriteLn("Hello, World!")
I thought modules were compiled to static class .NET IL code. I can open namespaces and modules, but why not static classes?
printfn "Hello, World!"
open System.Console
WriteLn("Hello, World!")
This is now supported, starting with the F# 5 release:
open type System.Console
WriteLine "Hello World!"