Closed bvssvni closed 9 years ago
Strictly speaking you are right - tuple-like types are bad in public API in general. But things stored in gfx_text
in arrays are: 4-component colors, two-dimensional positions, texture coordiants, matrixes. In my opinion they are too common and widespread so simple name of the parameter + array type is more than enough. What do you think?
Closing because of no activity. Feel free to reopen with new thoughts related that issue.
There are some use of arrays like
[i32; 2]
which could be explained better by adding a type alias.