Reading CLR via c# 4th Edition

时间:2023-03-09 02:11:51
Reading  CLR  via c# 4th Edition

In fact, at runtime, the CLR has no idea which programming language the developer used for the
source code. This means that you should choose whatever programming language allows you to
express your intentions most easily. You can develop your code in any programming language you
desire as long as the compiler you use to compile your code targets the CLR.

事实上,在程序运行的时候,CLR并不关心开发者是用哪一种编程语言来写源代码的。这就意味着,你可以选择更容易表达你意图的任何编程语言来开发,只要你使用的编译器是面向CLR的。

可以看出CLR的设计是面向编译器的,而不是面向具体编程语言的。。。不过目前参加过的项目,基本大家都是用C#,很少用多中编程语言结合。CLR的强大功能显得有点浪费了。