Is F# a usable language for .net windows development

后端 未结 5 1804
臣服心动
臣服心动 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条回答
  •  萌比男神i
    2021-02-20 13:29

    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.

    That's I think a very good approach. Designing complex GUIs without WinForms designer is a bit annoying (though, the difference isn't that big in WPF - F# doesn't support WPF designer, but you don't loose that many things there).

    Anyway, stay tuned for more examples :-). Using declarative event handling (Event.filter, Event.map & friends) is quite nice, but in some cases it isn't quite what you want to. I'm just writing a chapter about that and I think F# gives you some really awesome ways to deal with GUIs - the source code will be freely available on the book web site and I'll hopefuly write some short intro for my blog as well once the book will be done.

提交回复
热议问题