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

Support new syntax for type alias with free parameters #326

Merged
merged 1 commit into from
Feb 13, 2017

Conversation

yuyichao
Copy link
Contributor

No description provided.

@@ -1815,7 +1817,7 @@ end
if VERSION < v"0.5.0-dev+3669"
using Base: promote_op
import Base: *
typealias SubMatrix{T} SubArray{T,2}
eval(Expr(:typealias, :(SubMatrix{T}), :(SubArray{T,2})))
Copy link
Contributor

Choose a reason for hiding this comment

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

Why doesn't @compat SubMatrix{T} = SubArray{T,2} work here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Just avoiding using @compat in this file in general.

Copy link
Contributor

Choose a reason for hiding this comment

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

@compat is used 20 or so times in this file. Is there a reason to avoid it?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I just don't ever want to worry about ordering unless it's very hard to do without @compat.

@yuyichao
Copy link
Contributor Author

Added support for @compat const A{T} = B{T} since it might be useful to keep the style consistent...

@tkelman
Copy link
Contributor

tkelman commented Feb 13, 2017

before anyone tags a new version here, should be sure to resolve #324 (comment) in the readme

@yuyichao yuyichao mentioned this pull request Feb 13, 2017
@yuyichao yuyichao merged commit ec29bf4 into master Feb 13, 2017
@yuyichao yuyichao deleted the yyc/typealias branch February 13, 2017 23:05
martinholters added a commit that referenced this pull request Aug 27, 2018
Was added in #326, now obsolete as no longer required on minimum
supported Julia version 0.6.
martinholters added a commit that referenced this pull request Aug 31, 2018
* Remove at-compat for type aliases

  Was added in #326, now obsolete as no longer required on minimum
  supported Julia version 0.6.

* Remove at-compat for Nullable construction

  Was added in #287, now obsolete as no longer required on minimum 
  supported Julia version 0.6.

* Remove at-compat for Foo{<:Bar} sugar

  Was added in #317 (and #336), now obsolete as no longer required on 
  minimum supported Julia version 0.6.

* Remove at-compat for index styles

  Was added in #329, now obsolete as no longer required on minimum 
  supported Julia version 0.6.

* Remove at-compat for type declarations

  Was added in #325, now obsolete as no longer required on minimum 
  supported Julia version 0.6.

* Remove unused at-compat helper functions

* Remove README entries for removed at-compat functionality

  * new style call overloading (added in #181, removed in #385)
  * `get(io, s false)` (added in #212, #215, #225, removed in #385)
  * `.=` (added in #292 and #316, removed in #372)

* Remove `Compat.collect(A)`

  Was added in #350 and #351, now obsolete as no longer required on 
  minimum supported Julia version 0.6.
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.

3 participants