Monday, March 10, 2014

Dexterity's inconsistent use of -based indexing

In Dynamics Dexterity array's are 1-based indexed, whereas radio groups are 0-based indexed.

This catches me off guard on a regular basis, because i don't just use Dexterity, i use .NET and other frameworks and languages. So the 1-based indexing really throws me off alot. 

I understand that the original language designers probably thought that 1-based indexing would be more "user friendly", or whatever their goal was, but why wouldn't you keep that consistent? Why would radio groups be 0-based indexed.

No comments:

Post a Comment