Skip to content

Conversation

@Sacha0
Copy link
Member

@Sacha0 Sacha0 commented Nov 26, 2017

This pull request deprecates uninitialized-RowVector constructors of the form RowVector{T}(shape...) in favor of RowVector{T}(uninitialized, shape...) equivalents. For background, please see #24595. Best!

Tangentially, these methods do not appear to see use anywhere. Should we simply deprecate these methods altogether?

@Sacha0 Sacha0 added arrays [a, r, r, a, y, s] deprecation This change introduces or involves a deprecation labels Nov 26, 2017
@Sacha0
Copy link
Member Author

Sacha0 commented Nov 26, 2017

Absent objections or requests for time, I plan to merge these changes this evening PT or later. Best!

@Sacha0
Copy link
Member Author

Sacha0 commented Nov 28, 2017

Rebased. Planning to merge after rerunning CI. Best!

# deprecate RowVector{T}(shape...) constructors to RowVector{T}(uninitialized, shape...) equivalents
@deprecate RowVector{T}(n::Int) where {T} RowVector{T}(uninitialized, n)
@deprecate RowVector{T}(n1::Int, n2::Int) where {T} RowVector{T}(uninitialized, n1, n2)
@deprecate RowVector{T}(n::Tuple{Int}) where {T} RowVector{T}(uninitializd, n)
Copy link
Member

Choose a reason for hiding this comment

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

uninitializd -> uninitialized
I would have thought you were a master of spelling uninitialized after this series of PR's 😉

Copy link
Member Author

Choose a reason for hiding this comment

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

I consistently make either of two mistakes: unintialized, or uninitializd. Seems I have trouble typing vowels? 😄

Copy link
Member Author

Choose a reason for hiding this comment

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

Fixed. Thanks! :)

@Sacha0 Sacha0 merged commit 00e3a9f into JuliaLang:master Nov 29, 2017
@Sacha0 Sacha0 deleted the digrowvec branch November 29, 2017 04:12
@Sacha0
Copy link
Member Author

Sacha0 commented Nov 29, 2017

Thanks all!

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

Labels

arrays [a, r, r, a, y, s] deprecation This change introduces or involves a deprecation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants