G
Guest
Maybe this question has been addressed before, but I just stumbled with the
issue so I'll post it here.
Since I can remember array declaration in any language I've
worked(Basic/VB/VB.NET/C/C++) was:
(Example in Basic-way)
Dim Arr('UpperBound') as Type
Ex. Dim Arr(0) as String gives you a String Array with 1 element
But in C# string arr[0] gives you 0 elements, meaning the syntax is now
Type Arr('Count');
I'll like to know who though it would be a wonderful thing to break the
natural flow of thought by doing this in C# while all the remaining .NET
languages (with the possible exception of J# which I haven't tried) use the
UpperBound declaration type.
To me declare an array using count just seems counter-intuitive, maybe it's
just me.
Would like to hear your comments, for me this is an issue which should be
corrected.
issue so I'll post it here.
Since I can remember array declaration in any language I've
worked(Basic/VB/VB.NET/C/C++) was:
(Example in Basic-way)
Dim Arr('UpperBound') as Type
Ex. Dim Arr(0) as String gives you a String Array with 1 element
But in C# string arr[0] gives you 0 elements, meaning the syntax is now
Type Arr('Count');
I'll like to know who though it would be a wonderful thing to break the
natural flow of thought by doing this in C# while all the remaining .NET
languages (with the possible exception of J# which I haven't tried) use the
UpperBound declaration type.
To me declare an array using count just seems counter-intuitive, maybe it's
just me.
Would like to hear your comments, for me this is an issue which should be
corrected.