Result: both namespace and module name can contains space.
But there are some limitation. The C# IDE does not support namespace contains space. As a result, the C# cannot reference the F# function inside a namespace which contains space. Because F# support space, so you can reference function inside F# code.
In File1.fs
namespace A.``My Space``In File2.fs, the following code compiles.
type MyClass() = class end
module File2
open A.``My Space``Not sure if somebody wants to use this feature to hide the code from C#, but it is do-able.. :-)
let c = MyClass()
let d = A.``My Space``.MyClass()
1 comment:
That's very interesting! You've specified various kinds of 'space' perfectly. Thanks for the explanation of giving us a clear concept about it.
modules
Post a Comment