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

address concerns that depwarn for transpose is unclear #19205

Merged
merged 4 commits into from
Nov 5, 2016
Merged

address concerns that depwarn for transpose is unclear #19205

merged 4 commits into from
Nov 5, 2016

Conversation

cjprybol
Copy link
Sponsor Contributor

@cjprybol cjprybol commented Nov 3, 2016

I believe this synthesizes all of the concerns expressed in #18320

@cjprybol cjprybol changed the title address https://github.com/JuliaLang/julia/issues/18320 address concerns that depwarn for transpose is unclear Nov 3, 2016
Copy link
Contributor

@tkelman tkelman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks okay to me, thanks.

Anyone else have comments here?

edit: could use a description of what's being fixed in the commit message, whoever does "merge and squash" can add a few words to the message at merge time if needed

@andreasnoack
Copy link
Member

LGTM

"or writing a specific `transpose(x::$(typeof(x)))` method if appropriate."),
depwarn(string("the no-op `transpose` for non-numeric arrays is deprecated, ",
"and no specific `transpose` method for $(typeof(x)) exists. Use ",
"permutedims(x, (2, 1)) for matrices and reshape(x, 1, length(x)) for vectors, ",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should preserve the backticks around permutedims(...) and reshape(...).

Copy link
Sponsor Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good eye, thanks!

@tkelman tkelman merged commit f1544bc into JuliaLang:master Nov 5, 2016
tkelman pushed a commit that referenced this pull request Feb 22, 2017
* close #18320

* Update NEWS.md

* Update deprecated.jl

* Update deprecated.jl

(cherry picked from commit f1544bc)
fcard pushed a commit to fcard/julia that referenced this pull request Feb 28, 2017
* close JuliaLang#18320

* Update NEWS.md

* Update deprecated.jl

* Update deprecated.jl
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.

None yet

4 participants