为什么一个平台的不同语言[.NET} [英] Why different languages for one platform [.NET}

查看:67
本文介绍了为什么一个平台的不同语言[.NET}的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨专家,



问候!



我的问题非常简单。为什么有不同的语言,如C#,Visual Basic,F#等?一种语言不能处理所有的作品吗?我没有包含ASP .NET,因为它用于基于Web的应用程序。因此,为Windows应用程序提供一种天才语言和基于Web的应用程序使用一种智能语言是不合逻辑的?





谢谢提前

Ankit

Hi experts,

Greetings!

My question is very simple. Why there are different languages like C#,Visual Basic,F# and so on? Can one language not handle all the works? I have not included ASP .NET as it is used for web based applications. So isn''t it logical to have one genius language for windows application and one smart language for web based application?


Thanks in advance
Ankit

推荐答案

这一切都始于C#和VB.NET。 C#被设计为用于托管开发的C ++的演变,而VB.NET针对无数或VB编码器,他们想要一种简单的语言,并且不想学习任何新东西。微软必须为他们提供迁移路径。 C#最初更灵活,功能更强大(有些东西在VB.NET中是不可能的,并且得到了C#的支持)。



那么它是C ++托管扩展 添加。需要简化现有C ++代码到.NET的适应性。



还有J#,Java开发人员使用.NET的路径,但它并没有获得太多人气。



Mono,.NET CF和Silverlight最初只支持VB.NET和C#(我不记得现在是否已经改变)。



Microsoft向第三方语言开发人员提供了将其语言插入.NET Framework的途径,并且存在其他语言的托管版本(例如,Eiffel)。



F#是一种功能语言,它与普通语言的原理不同,并且具有自己的使用范围。



你问题的第二部分(一切都没有一种语言)已经在过去的30或40年里讨论过了。
It all started with C# and VB.NET. C# was designed as an evolution of C++ for managed development and VB.NET targeted a myriad or VB coders which wanted a simple language and didn''t want to learn anything new. Microsoft had to offer a migration path for them. C# was more flexible and a bit more powerful initially (some things were not possible in VB.NET and were supported by C#).

Then it was "C++ managed extensions" added. It was required to ease adaptation of existing C++ code to .NET.

There was also J#, a path for Java developers to .NET, but it didn''t gain much popularity.

Mono, .NET CF and Silverlight initially supported only VB.NET and C# (I don''t remember if this has changed now).

Microsoft offered third-party language developers a path to "plug" their languages to .NET Framework, and there exist managed versions of other languages (ef. Eiffel).

F# is a functional language, it''s different in principles from common languages and has it''s own scope of use.

And the second part of your question (couldn''t there be one language for everything) has been discussed during last 30 or 40 years already.


每种语言都有自己的优势和擅长的功能,虽然你可以用任何语言做任何事情,但有些语言可能比其他语言更容易。



有些人用一种语言比其他语言更舒服,所以将它们强加于其他东西是不合理的。
Each language has its strengths and what it is good at, while you can do anything in any language it might be easier in some than others.

Some people are more comfortable in one language than others, so it is unreasonable to force them into some thing else.


visual studio有利于开发具有多种语言选项的应用程序。 br />
所以,这是好的,因为开发人员对特定语言有良好的掌握,他/她可以使用该语言开发应用程序



所以,它的功能不是缺点



快乐编码!

:)
visual studio gives advantage to develop application with option of many languages.
so, it''s good because a developer who have good command on a particular language he/she can develop application with that language

so, it''s a feature not a drawback

Happy Coding!
:)


这篇关于为什么一个平台的不同语言[.NET}的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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