-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Improve documentation for generated functions #12488
Comments
And I think it include what you want already.
It let you generate code with type information but when and how many times it is called is undefined.
You can print out the AST and otherwise use/debug them as usual functions.
No difference from normal functions. |
No, I didn't find that, thanks. I tried searching the HTML docs for The docs are really good except it starts using interpolation inside expressions like |
It's assumed you've read the material higher up on the same page 😄. |
Whenever the JuliaCon videos finally go up, you'll probably want to watch @jakebolewski's talk. He changed subjects so the title on the program isn't accurate, he spoke about generated functions in some detail. |
Link to talk: https://www.youtube.com/watch?v=KAN8zbM659o&list=PLP8iPy9hna6Sdx4soiGrSefrmOPdUWixM&index=55 Closing this for now as the metaprogramming section does need to be read in full. Doc improvement PRs are always welcome. |
(I couldn't find another open issue.)
I was reading the docs trying to understand when and how to use
@generated function
s but there is just an example without much explanation. In one of Stephan's presentations he talked about generated functions but only had time to quickly show what it does. As a feature that allows you to write multi-dimensional code I think this is one of the top features of 0.4 and should cover things like: how it interacts with the compiler/parser, how to debug/code with them, performance implications, etc.The text was updated successfully, but these errors were encountered: