-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Add recipe for Loopy. #7253
Add recipe for Loopy. #7253
Conversation
Loopy provides a looping macro, similar in usage to ‘cl-loop’. Unlike cl-loop, it uses expressions instead of clauses, and had conditional structures that work closer to normal Emacs Lisp.
This looks very interesting. Were you inspired by the CL |
I have looked through the looping packages on https://lispcookbook.github.io/cl-cookbook/iteration.html. I think that Loopy is similar to the EDIT: I think that the use of normal Lisp expressions outside of specific location could be added straight-forwardly (if they and the Loopy commands aren't interwoven), but I think that should be added after things are more certain, since it would probably complicate debugging. |
@alphapapa Do you see places where the package could be improved? |
Quick first pass from me. Maybe you don't intend to distribute loopy-examples.el with this; one option would be to add an examples directory that will automatically be excluded by the default MELPA recipe. Have you tried posting a RFC to the community somewhere to see if you can get some feedback on this? The package seems relatively new (based on the git timestamps) and I wonder if the ideas/api couldn't benefit from some exposure to the community before it's indexed. You'd probably also want to quantify exactly how much slower this is than cl-loop (I suspect a lot of authors are trying to squeeze as much performance as they can out of elisp, and might be interested.) loopy-examples.elbyte-compile (using Emacs 27.1):
checkdoc (using version 0.6.2):
package-lint (using version 20200906.512):
Other possible lints:
loopy.elbyte-compile (using Emacs 27.1):
checkdoc (using version 0.6.2):
package-lint (using version 20200906.512):
Other possible lints:
|
I wanted to distribute a copy of the file, but not have it be treated as a library. Is there a way to do that? I wanted to reference it from the Info and README files, but there's no reason for a user to load. It is just real-world examples of using the actual library.
Yes, I tried to request feedback on Reddit. They recommended that I look at Common Lisp's Iterate package.
I will ask on the mailing lists, next.
I will do so. I am trying to make Loopy expand to the same code as Thank you for you feedback. I will close this pull request for now, and see what the mailing lists say. |
Thanks for being understanding. It does look like an interesting package, so keep us posted!
It's a convention that MELPA tries to keep the packages on the lean side, which usually means no example files (although, admittedly, certain documentation files are included by default). In the future we may want to automatically walk through packages to check them for common issues, and excluding examples would limit the number of false positives. If simply linking the example doesn't work, you could possibly package the example up in an org file with |
Add recipe for
loopy
macro.Brief summary of what the package does
Loopy provides a looping macro, similar in usage to
cl-loop
. Unlikecl-loop
, it uses expressions instead of clauses, and has conditional structures that work closer to normal Emacs Lisp.Direct link to the package repository
https://github.com/okamsn/loopy
Your association with the package
I am the maintainer.
Relevant communications with the upstream package maintainer
None needed
Checklist
Please confirm with
x
:M-x checkdoc
is happy with my docstrings