Skip to content
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

Docs for destructuring? #978

Closed
ghost opened this issue Oct 21, 2015 · 5 comments
Closed

Docs for destructuring? #978

ghost opened this issue Oct 21, 2015 · 5 comments

Comments

@ghost
Copy link

ghost commented Oct 21, 2015

I'd add it myself, but I dunno where it would fit.

Looking at the doc indexes, I do not see an obvious place for it.

(Searching for "destructuring" in the docs yielded no results)

@refi64
Copy link
Contributor

refi64 commented Oct 21, 2015

Do you mean argument destructuring (like (defn f [[a b]] (+ a b))) or value destructuring (like (setv [a b] c))?

@ghost
Copy link
Author

ghost commented Oct 21, 2015

Function, I guess that is argument destructuring.

@berkerpeksag
Copy link
Member

Perhaps we can add a new "Hy Cookbook" chapter to docs.

@gilch
Copy link
Member

gilch commented Oct 23, 2015

Maybe a cookbook is not a bad idea once we finish the Grand Language Cleanup, but before that it's premature, since we'd have to update it with every change. This will be hard enough as it is. I don't think we've updated anything in eg/ for a while.

A cookbook is not a substitute for a basic reference. It's too hard to find more basic things like "how destructuring works" if the recipes are things like "how to use Hy with Django".

Hy depends a lot on Python's documentation. It would be a waste of time to reproduce the documentation for Python's standard library, for example. But perhaps we could make more explicit references to Python's documentation where appropriate.

@Kodiologist
Copy link
Member

This feature was removed in #1590.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants