Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
@jespersh You use a struct for items where the position changes their meaning, like in x/y/z coordinates. But then you also need to give them different names.
Just enumerating them like in this case rather suggests that they should be an array, unless it's an improbable case of an eight-dimensional space where these are the coordinates. -
@jespersh @Fast-Nop I currently use this to access them:
@highlight
*(&s.xvm0 + (i * (&s.xvm1 - &s.xvm0))) -
@jespersh Yeah sorry about the lack of context. I was annoyed and wanted to quickly rant.
I did not get a satisfactory answer so far for why it was written this way. And this code is so old and the original Dev is no longer at the company.
Related Rants
Shitcode
rant
shitcode