Weighing in on "BCL-types vs Language-specific types" debate...

I agree with Clemens Vaster's comment "Int32 is just some detail of the underlying platform. The fact that C# and VB.NET very convienently map onto the CLR type system doesn't mean that all languages do. ".

Eventhough many .NET languages "CAN" map to the same base types, it is this very choice in design about mapping to the BCL types that makes each language unique.  The idea of using Int32 instead of int, or int16 for short, or int64 for long in C# makes very little sense to me since they all boil down to the same BCL types anyways.

So, I plan to continue to use the C# language-specific aliases until Anders Heljsberg, Eric Gunnerson, or other guiding forces of the C# language show up and say "oh, we made a mistake by including type aliases in C#".

[edited to pitch a better argument :-) ]

 

No Comments