Why can't F # open static classes?

I thought the modules were compiled into a 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!") 
+5
source share
1 answer

There is an offer for on GitHub . original suggestion , there is a comment from Don Syme:

Yes, this should be implemented in accordance with the corresponding C # function, as static classes will become more common from the C # world.

I would recommend voting for a question on GitHub (respond with thumbs). If you have any comments to add, people might be interested in this again.

+3
source

Source: https://habr.com/ru/post/1270359/


All Articles