-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor Definition of RPC Commands #52
Comments
I should have included a link to the commit in question: bc42e63, to give an idea of my thought process. |
I've never used defmacro before, and have no strong opinion about this change as I'm still a elisp beginner. Just a few questions, mainly out of curiosity
I'll try to test this branch in the coming days so I'll probably find out the answer to the first question by myself then ;-) |
No. But that doesn't mean they are difficult to debug either. Personally the way I debug anything dealing with macros is by using
The But again, this is all just the result of some brainstorming. Whenever I see a bunch of nearly-identical functions in code, especially in a Lisp with powerful macros, it sets off an alarm in my head reminding me that functional programming and macros provide a way to remove that duplication and (almost) always in a way that decreases bugs and improves how easy it is to add new functionality in the future.i Edit: If all the code accomplishes is serving as a learning exercise, then I'll be satisfied with that. |
See the code in the
refactor-rpc-functions
branch for all of the details. The code is not finished. But while looking at the project it struck me as a potentially useful refactoring. Please do not merge it because it needs more testing, and discussion, as not everyone may agree it's a worthwhile change.The text was updated successfully, but these errors were encountered: