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

Fix for removal of limit_output #212

Merged
merged 1 commit into from
May 28, 2016
Merged

Fix for removal of limit_output #212

merged 1 commit into from
May 28, 2016

Conversation

timholy
Copy link
Sponsor Member

@timholy timholy commented May 26, 2016

This is only needed to support multiple versions of julia-0.5, since limit_output(io) was introduced (+1936) and then removed (+4305).

For, e.g., BenchmarkTools, it seems important to be able to support a range of julia-0.5 versions.

key = expr.args[3]
if (((isa(key, QuoteNode) && key.value == :limit) ||
(isa(key, Expr) && key.head == :quote && key.args[1] == :limit))
&& expr.args[4] == false)
Copy link
Contributor

Choose a reason for hiding this comment

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

more readable if line continuations of block openers are indented one extra level IMO, so it's set off from the body

Copy link
Contributor

Choose a reason for hiding this comment

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

I'd have sacrificed the vertical alignment of the parens rather than adding a bunch of spaces between if and the start of the condition, but good enough

@tkelman
Copy link
Contributor

tkelman commented May 26, 2016

Is there anything we could try to make get(io, :limit, false) do something useful on 0.3 and/or 0.4?

@timholy
Copy link
Sponsor Member Author

timholy commented May 26, 2016

Maybe rewrite it as false?

In some places, BenchmarkTools has whole separate sections for printing on 0.4. This may therefore be the best that's possible.

This does something useful only for multiple versions of julia-0.5, since `limit_output(io)` was introduced (+1936) and then removed (+4305). Prior to that, you couldn't call `limit_output` on an `io` object.
For earlier julia versions, this just evaluates as `false`.

For, e.g., BenchmarkTools, it seems important to be able to support a range of julia-0.5 versions.
@timholy
Copy link
Sponsor Member Author

timholy commented May 26, 2016

This is all green. Good to go?

@tkelman
Copy link
Contributor

tkelman commented May 26, 2016

How urgently is this needed? I usually like to give Yichao, Milan et al a chance to review things here since they have a pretty good eye.

@timholy
Copy link
Sponsor Member Author

timholy commented May 26, 2016

That's fine, I was just pinging to let you know of the update.

@timholy
Copy link
Sponsor Member Author

timholy commented May 26, 2016

See also JuliaCI/BenchmarkTools.jl#9

@tkelman tkelman merged commit ed24f23 into master May 28, 2016
@tkelman tkelman deleted the teh/limit_output branch May 28, 2016 19:29
@tkelman
Copy link
Contributor

tkelman commented May 28, 2016

Oh right should this have a readme item?

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