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
A) TIntegerArray = array of Integer;
B) TIntArray = array of Integer;
C) Both, aliases for the win!
D) None of the above? O_o
TArrayOfInteger .. I've seen that one and I don't think it's that ugly.
ReplyDeleteIn such cases I use TAoInteger ;)
ReplyDeleteI agree with martion: TArrayOfInteger is about as clear as you can get.
ReplyDeleteWhat about TIntegers ?
ReplyDeleteProbably TIntegerDynArray, only because it's already there in the Types unit.
ReplyDeleteOr TArray or just "array of Integer"
ReplyDeleteA.
ReplyDeleteHmm, 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.
ReplyDeleteTIntArray, definitely
ReplyDelete