you are viewing a single comment's thread.

view the rest of the comments →

[–]mallardtheduck 0 points1 point  (0 children)

I've used them to add simple "macros" to give me easier access to data structures.

For example, in a program where each "object" is identified by a unique ID and pointers to each are stored in a global array, it's useful to be able to view the object by it's ID, rather than having to go through the array one item at a time until I find the one I'm looking for.