This is probably me nitpicking as usual, but in an API, which would you prefer?

This is probably me nitpicking as usual, but in an API, which would you prefer?

A) TIntegerArray = array of Integer;
B) TIntArray = array of Integer;
C) Both, aliases for the win!
D) None of the above? O_o

Comments

  1. TArrayOfInteger .. I've seen that one and I don't think it's that ugly.

    ReplyDelete
  2. I agree with martion:  TArrayOfInteger is about as clear as you can get.

    ReplyDelete
  3. Probably TIntegerDynArray, only because it's already there in the Types unit.

    ReplyDelete
  4. Or TArray or just "array of Integer"

    ReplyDelete
  5. Hmm, that's a lot of mixed opinions. So far I've been using TIntArray (and T2DIntArray), because I don't think it causes confusion and it's a but shorter to write up.

    ReplyDelete

Post a Comment