I just had a fun thought this morning. Not sure if it is a serious one, but maybe.
Consider that [Int]
is sugar for Array<Int>
.
It seems reasonable, then, to wonder if the "stuff inside the angle brackets" could and should be the same "stuff inside the square brackets."
By that train of thought, the sugar for InlineArray<3, Int>
could be [3, Int]
(comma).
Of course, by itself, there is some ambiguity here if not used in type position.
But!—we have said that we care very much about communicating that this type stores its elements inline. Perhaps there is some way to depict something being "inline"?
Maybe, we literally put it inside the lines: |[3, Int]|
—so, [...]
is an array, and |[...]|
is an inline array...