属性首先出现在哪种语言中

发布于 2024-09-25 03:51:36 字数 146 浏览 0 评论 0原文

似乎 C# 中的几乎所有功能都是从其他语言借来的(OOP 来自 Java,泛型(参数多态性)和 lambda 来自 ML 系列,LINQ 来自 Haskell 的 monad,动态来自动态语言),但我不知道属性的起源(Java 世界中的注释)。 C# 是第一个引入属性的语言吗?

It seems that almost all features in C# were borrowed from another languages (OOP from Java, generics (parametric polymorphism) and lambdas from ML family, LINQ from Haskell's monads and dynamic from dynamic languages), but I don't know the origin of attributes(annotations in Java world). Is C# the first language that introduced attributes?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

独享拥抱 2024-10-02 03:51:37

我第一次在 C++ 世界的 COM IDL(接口定义语言)文件中看到属性作为方法或参数注释。我不知道它们是否是那里发明的。 http://msdn.microsoft.com/en-us/library/aa367042.aspx

I saw attributes for the first time as method or parameter annotations in COM IDL (Interface Definition Language) files back in C++ world. I do not know if they were invented there or not. http://msdn.microsoft.com/en-us/library/aa367042.aspx

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文