如何仿制药的影响C#和.NET的设计? [英] How generics influenced the design of C# and .NET?

查看:243
本文介绍了如何仿制药的影响C#和.NET的设计?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这可能是一个宽泛的问题,但是这是后话,我真不明白,很好奇。

This might be a broad question but this is something I am not really clear and very curious.

很多时候,对于某些问题,我听到的理由,这是因为仿制药是不具备的.NET 1.0。这使我想到以下任一两件事情:

Often times for certain problems I hear the reasoning that it was because Generics was not available in .NET 1.0. That makes me think either of these 2 things:

  1. 泛型没有想到过,所以开发商想出了之后.NET 1.0这可能极大地影响到C#的设计和.NET,但可能已作出(向下兼容)的决定,不是因为。

  1. Generics was not thought of before, so the developers came up with it after .NET 1.0 which could drastically affect design of C# and .NET but couldn't because of decisions already made (backwards compatibility).

泛型总是从一开始的计划,从而使产生于不使用.NET 1.0释放它唯一的问题是不能够使用它,直到2.0。但除此以外,没有任何多余的功能进行了介绍还是错的,不可逆转的决定是提交。

Generics was always planned since the beginning, so the only problem that arise from not releasing it with .NET 1.0 was not being able to use it till 2.0. But other than this, no redundant features were introduced or wrong, irreversible decisions were committed.

我主要是假设#1,但#2是实际情况?

I mostly assume #1, but is #2 is the actual case?

推荐答案

泛型已经存在很长一段时间,并且可以粗略地与C ++模板,尽管这个概念(也可能是在其他语言中实现)predates甚至

Generics have been around a long time and can be loosely compared to C++ templates, although the concept (and probably implementation in other languages) predates even that.

NET 1.0是一个平台的首次下调使该计划是运送一些作品合理。泛型将不得不一直对规划未来,如果任何像样的建筑师是对球队,但可能在以后添加的东西。事实上,关于实施仿制药用于.NET的纸出来一年前.Net框架1.0 RTM eventuated。

.Net 1.0 is the first cut of a platform so the plan was to ship something that works reasonably. Generics would have to have been on the "planned future" if any decent architect was on the team, but is something that could be added later. In fact, the paper on implementing generics for .NET came out a year before .Net Framework 1.0 RTM eventuated.

时间线:(http://en.wikipedia.org/wiki/List_of_.NET_Framework_versions)

Timeline: (http://en.wikipedia.org/wiki/List_of_.NET_Framework_versions)

2002-03-05 .Net Framework version: 1.0.3705.0 released
~May, 2001 Don Syme's paper on "Design and implementation of generics for .NET"

微软可能会采取10年时间构建.NET框架4.0(1.0版本),但有这么多的code和这么多的功能了一次,这将需要5年时间找​​到所有的bug和可用性问题如果项目甚至可以取得成功。

Microsoft could have taken 10 years to build .Net Framework 4.0 (as version 1.0), but with so much code and so many features out at once, it would take 5 years to find all the bugs and usability issues if the project can even succeed.

所以回答你的问题将是2号。

So the answer to your question would be #2.

唐赛姆的主要设计和implementated泛型到C#和.NET。

Don Syme primarily designed and implementated generics into C# and .Net.

资源

  • Language features added to C# over time (C# is the showcase language for .Net features)
  • Design and implementation of generics for the .NET Common language runtime
  • Formalization of generics for the .NET common language runtime
  • Anders Hejlsberg, lead architect of C#
  • Anders Hejlsberg talks a bit about generics

<子>的Anders Hejlsberg为是我心目中的英雄 - 维基百科 - Turbo Pascal的,德尔福的总设计师原作者,后来导致了C#建筑师

这篇关于如何仿制药的影响C#和.NET的设计?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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