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

Rename stagedfunction → @generated function #10884

Merged
merged 1 commit into from
Apr 20, 2015
Merged

Rename stagedfunction → @generated function #10884

merged 1 commit into from
Apr 20, 2015

Conversation

mbauman
Copy link
Member

@mbauman mbauman commented Apr 18, 2015

This fixes the long-standing name "bug". Note that it only affects surface syntax. Internally, generated functions still use the old language (e.g., Expr(:stagedfunction, …), isstaged, stagedcache, etc).

This adds a temporary deprecation to the stagedfunction keyword -- the keyword should be entirely removed before the 0.4 release.

Given that we have an outstanding PR for documentation (#10673), it'd be nice to use it's real name… if this is its real name. It was a long time ago, but I believe this was the preferred naming.

This also enables one-liner @generated functions, because it's easy.

@kmsquire
Copy link
Member

Ref: comments starting with #7474 (comment)

@JeffBezanson
Copy link
Member

👍 Thanks!!

@mlubin
Copy link
Member

mlubin commented Apr 18, 2015

👍

@mbauman
Copy link
Member Author

mbauman commented Apr 18, 2015

Failures seem to be unrelated connectivity issues.

@lindahua
Copy link
Contributor

👍

@timholy
Copy link
Member

timholy commented Apr 19, 2015

Really nice. Did not realize how easy this would be.

@mlubin
Copy link
Member

mlubin commented Apr 20, 2015

Looks like this already needs a rebase?

This fixes the long-standing name "bug".  Note that it only affects surface syntax.  Internally, generated functions still use the old language (e.g., Expr(:stagedfunction, ...), isstaged, stagedcache, etc).

This adds a temporary deprecation to the `stagedfunction` keyword -- the keyword should be entirely removed before the 0.4 release.
@mbauman
Copy link
Member Author

mbauman commented Apr 20, 2015

Rebased, will merge after CI.

mbauman added a commit that referenced this pull request Apr 20, 2015
Rename stagedfunction → @generated function
@mbauman mbauman merged commit 37041bb into master Apr 20, 2015
@mbauman mbauman deleted the mb/namebug branch April 20, 2015 15:10
tomasaschan pushed a commit to tomasaschan/julia that referenced this pull request Apr 20, 2015
mbauman pushed a commit to mbauman/julia that referenced this pull request Jun 6, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants