F#: is there no UI (like WPF) for it?

后端 未结 7 1016
梦毁少年i
梦毁少年i 2021-01-30 18:41

i recently saw some videos on F#. it seems it used mainly for Service or Classes only? i see no \"F# WPF\" app in VS2010 Beta?

7条回答
  •  耶瑟儿~
    2021-01-30 18:48

    You can certainly create GUIs in F# - it's just another .NET language, after all.

    Tomas Petricek's book, Functional Programming for the Real World (which I've helped out with a little bit) has various GUI examples. The source code is available to download if you want to see examples.

    Admittedly some aspects of GUI programming don't map terribly well to a functional style, as there's a lot of mutation involved, but there are ways and means around that :)

提交回复
热议问题