您使用F#哪些领域的code的呢? [英] What areas of code are you using f# for?

查看:282
本文介绍了您使用F#哪些领域的code的呢?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

对于那些你在那里谁使用F#,你的编码与它哪些方面的功能?什么是语言真的很适合它有什么用更多的权力做,缓解不如说是C#?

For those of you out there who are using f#, what areas of functionality are you coding with it? What is the language really well suited to and what does it do with far more power and ease than say c#?

推荐答案

我目前使用F#来开发我的下一个独立的视频游戏。到目前为止,我发现我的正常的面向对象的方法是从我如何发展在C#中的不同。

I'm currently using F# to develop my next indie video game. So far I'm finding that my normal OO approach is different from how I develop in c#.

一些我注意到的好东西是,我使用的是平均水平,即更小的函数每个函数的行数是一路下滑。它也更自然,现在对我来说,范围静态私有成员函数是有它接触到的一切物体的另一名成员,而不是内部。写碰撞算法是很容易。这是一个有点早,我说,写算法F#是更容易,但我已经倾向于这种方式。

Some good things I've noticed is that I'm using smaller functions on average ie the number of lines per function is way down. It's also more natural now for me to scope a static private member function to be inside of another member instead of having it be exposed to everything in the object. Writing a collision algorithm was really easy. It's a bit early for me to say that writing algorithms in F# is easier but I'm already leaning that way.

不是一切都已经玫瑰,因为我开始使用F#。我仍然在寻找在线文档缺乏。专家F#已经有一定的帮助,但因为它撇去了OO它让我失去了很多次。它让我心烦,作者选择了不走得很深入OO当它是目前发展的最普遍的形式。我不希望倾倒OO。我期待整合功能进去。

Not everything has been roses since I started using F#. I'm still finding online documentation lacking. Expert F# has been of some help but since it skims over OO it leaves me lost a lot of times. It gets on my nerves that the author chose not to go very deep into OO when it's currently the most popular form of development. I'm not looking to dump OO. I'm looking to integrate functional into it.

我到目前为止看到的最大的优势一直是我的codeS正确性。我知道这听起​​来滑稽,但每一次我已经得到了我的code编译,它一直如预期。我希望这仍是如此,当我突破一万行code标记。

The biggest advantage I've seen so far has been my codes correctness. I know it sounds funny but every time I've gotten my code to compile, it has worked as expected. I hope this is still the case when I break the ten thousand lines of code mark.

这篇关于您使用F#哪些领域的code的呢?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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