Is F# a usable language for .net windows development

后端 未结 5 1790
臣服心动
臣服心动 2021-02-20 13:01

I have been hearing about F# and Microsoft now have a guy who is blogging and coding away in redmond somewhere about it. Can you really write GUI code from F# (I\'d love to see

5条回答
  •  说谎
    说谎 (楼主)
    2021-02-20 13:34

    Yes, you can certainly write WinForms apps - although you wouldn't override the OnClick method, you'd subscribe to the Click event.

    Yes, F# has full access to .NET, although you won't get very idiomatic functional code if you use a lot of mutable types.

    Tomáš Petříček's F# web site has sample source code from his book (disclaimer: I'm involved with the book too, so I'm clearly biased) which has WinForms examples.

提交回复
热议问题