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?
Yeah, I though about UML too.
gaearon
2010-09-29 22:22:22
+1
A:
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
guardi
2010-09-29 22:16:20