| Share your useful functions/macros |
| 7 points by waterhouse 5134 days ago | 39 comments |
|
| I've had this thread in my head for a long time, and I guess I might as well post it now. (It'd probably be good to have more like it every once in a while.) In this thread, I'll submit comments describing functions/macros I find generally useful, and I suggest that others do the same. For each item, I'll try to communicate a) what it does, b) why I find it useful, and c) enough of a formal description that readers can implement it without trouble. (Obviously, working code will cover (c), but I have at least one idea that requires platform-specific code. And note that "platform-specific" can refer to Arc implementations as well as operating systems.) In doing this, I hope to give everyone, and perhaps gain from you, tools to make programming more pleasant--in Arc, but also in any other language (like other Lisps) that supports these items. I also expect this thread to be useful for core language designers to look over: "general-purpose functions/macros that we find useful in day-to-day coding" is pretty much a description of what should go into a core language. And now I'll try not to run afoul of the Arc Forum's probably existent protections against people submitting too fast (as I've prepared nine comments that I think I'm ready to submit all at once)... |