logoalt Hacker News

t-3today at 5:22 AM1 replyview on HN

No structs, just an array that accomplishes the same thing, without field names or other niceties. Enjoy the pleasure of not using a struct when you inevitably add/reduce/reorder fields later.


Replies

hibberl7today at 5:58 AM

Yeah this is nuts. It's like someone just discovered casting so they can be really clever and use the first pointer in an array for something non-pointy.

I can't make any sense of the aversion to a struct. Use a struct. You don't have to give its type a name, if that's the motivation here.

show 1 reply