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

Implement at-compat for new style call overloading #181

Merged
merged 2 commits into from
Mar 30, 2016
Merged

Conversation

yuyichao
Copy link
Contributor

The first commit replaces some == with === with it is used on symbols.

The check is version based. There's probably a way to do "feature" test and I'm not sure what is the preferred way now... (only version? only feature? both?)

I'm curious why no one asked for it yet.....

@nalimilan
Copy link
Member

I would have asked for it at some point if you hadn't made this PR. :-)

For now, the common practice is to check for a given commit. See https://github.com/JuliaLang/Compat.jl#developer-tips (EDIT: obviously you know this) In the present case, checking the feature doesn't sound easy anyway.

@yuyichao
Copy link
Contributor Author

For now, the common practice is to check for a given commit.

I'm mainly wondering due to JuliaLang/julia#15636 . It won't be particularly hard to do a feature detection since the function internals changed a lot and it should at most be a matter of finding the right field name to check on some type.

@yuyichao
Copy link
Contributor Author

I'll keep the version check for now. If we decide to go with the other way, the simpliest test I can think of is !isleaftype(Function).

@yuyichao yuyichao merged commit 3046835 into master Mar 30, 2016
@yuyichao yuyichao deleted the yyc/call branch March 30, 2016 03:47
martinholters added a commit that referenced this pull request Aug 27, 2018
* 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)
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.

2 participants