Is F# a usable language for .net windows development

后端 未结 5 1817
臣服心动
臣服心动 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:35

    You CAN write GUI code from F#, but I'm not sure that you'd WANT to. If you are the kind who wrote your C# GUIs in notepad anyway, then it probably wouldn't bother you. Personally I prefer the designer, and there isn't one for F#, and as far as I've understood it, there isn't going to be one either - which probably says something about the intended use of F#.

    But as Jon Skeet says, Tomas has some interesting examples (especially filtering/piping events), which show what I suspect may be a good cross-over point, i.e., design your C# GUI with designer, and then write the brains in F#, hooking one to the other with events.

提交回复
热议问题