Custom Meta Data

MetaData and MetaProgramming afford a lot of power to programmers. One problem, however, is that most languages don't provide an easy way for developers to attach custom meta-data to program elements like member data, methods, and classes.

Custom meta data can be very useful when ReflectiveProgramming is done. Here are some examples from the ScarletLanguage (Scarlet allows you to tag program elements with arbitrary identifiers called attributes):

The CsharpLanguage also makes rather heavy use of custom meta-data. In C# however, attributes are full fledged objects so they are a bit more powerful that those in Scarlet. http://www.ondotnet.com/pub/a/dotnet/2003/07/28/understadingattributes.html has a good introduction to attributes in C#.

It's coming in Java as well. http://www.langrsoft.com/articles/annotations.html

--JesseJones


CategoryReflection


EditText of this page (last edited October 17, 2009) or FindPage with title or text search