Synonyms
In Ruby, providing synonyms for operations is good practice, but .NET has an almost complete lack of them. For example, in .NET arrays have a "Length" property, and the ICollection interface has a "Count" property. These are synonymous, but cannot be used interchangeably, i.e. you can't get the "Length" of a IList, only the "Count". Why not allow both names for a property?
If you allowed synonyms for keywords, you could write poetic programs. In English, it is considered bad writing to repeat the same word over and over again, so why not in programming languages....

0 Comments:
Post a Comment
<< Home