Comment by quietbritishjim
10 hours ago
Honestly, I think I'm more likely to get your form wrong than the original one. This doesn't obviously look wrong to me:
game->boardPieces = swAlloc(sizeof game->boardPieces * row * column);
Maybe I find this harder to parse because I'm not used to sizeof without brackets (though I know it's valid). But I think the bigger deal is that your version has a bug if the star is missing whereas there's has a bug if the star is present; it's easier to spot something extra than it is to spot something missing.
No comments yet
Contribute on Hacker News ↗