是F#中使用的语言,.NET开发Windows [英] Is F# a usable language for .net windows development

查看:190
本文介绍了是F#中使用的语言,.NET开发Windows的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直听到关于F#和微软现在有一个家伙谁是博客和雷蒙德编码远的地方了。你真的能写从F#GUI code(我喜欢看到添加一个按钮,一个表单和订阅onclick事件,例如说的一个例子)

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 an example of say adding a button to a form and subscribing to the onclick event for instance)

难道F#可以完全访问所有的.NET的?

Does F# have full access to all of .Net?

我很诚实好奇,我知道我可以谷歌,但我很乐意,谁是真正使用语言的人听的。

I'm honestly curious and I know I could google but I'd love to hear from someone who is really using the language.

推荐答案

是的,你当然可以写的WinForms应用程序 - 尽管你不会重写OnClick方法,你订阅点击事件

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

是的,F#已全面进入.NET,虽然你不会得到很地道的功能code,如果你使用了大量可变类型的。

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

托马什Petříček的F#网站具有示例源$ C ​​$ C,从他的书(声明:我参与的书太多,所以我显然有失偏颇),其中有WinForms的例子。

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.

这篇关于是F#中使用的语言,.NET开发Windows的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆