问题描述
唐赛姆在他的谈话SPLASH说,F#并不打算为C#,即使它具有一般功能的替代品。他接着说,在有些情况下F#是没有意义的使用领域,但对本文不展开。
Don Syme in his SPLASH talk says that F# is NOT intended to be a replacement for C# even though it has the general capabilities. He goes on to say that there are areas where F# makes no sense in using, but doesn't expand on the thesis.
- 有人可以告诉我在使用F#应该避免哪些方面呢?
- 您还可以提及的区域,其中C#闪耀
的
推荐答案
我取是更换语言丰富而成熟的C#是的非常昂贵的。因此,例如,目前的,C#绝对是的WinForms发展的最佳选择,如果使用Visual Studio的WinForms设计师可以给你一个优势:F#没有的WinForms设计师。
My take is that replacing a language as rich and mature as C# would be very expensive. So, for example, at the moment, C# is absolutely the best choice for WinForms development if using the Visual Studio WinForms designer can give you an advantage: F# has no WinForms designer.
C#也有此刻更好的LINQ到SQL的支持。我敢肯定有沿着这些路线的许多其他的例子。
C# also has better LINQ-to-SQL support at the moment. I'm sure there are many other examples along these lines.
再有就是需要整个C#技能的劳动力更新他们的技能,以F#,同时保留C#技能的维护应用程序,再昂贵。
Then there is requiring the entire C# skilled workforce to update their skills to F#, while preserving C# skills for maintaining applications, again expensive.
最后,C#是一个有很多强大功能的优秀语言,一些F#甚至没有如CO /潮水变种仿制药,并进行动态框支持对DLR编程(F#只是有一个未实现运营商)。
Finally, C# is an excellent language with a lot of great features, some F# doesn't even have like co/contra variant generics and out of the box support for dynamic programming against the DLR (F# just has an unimplemented operator).
因此,通过不期望F#替换C#,F#能够以新的方式,而不是花费所有发展它的时间玩追赶中早已覆盖的地区。
So by not expecting F# to replace C#, F# can evolve in new ways instead of spending all it's time playing catch-up in areas already well-covered.
这篇关于在哪些领域F#使"绝对没有意义的使用"?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!