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

Add support to multiple property pairs in sprint #39381

Merged
merged 6 commits into from
Feb 22, 2021
Merged

Add support to multiple property pairs in sprint #39381

merged 6 commits into from
Feb 22, 2021

Commits on Feb 21, 2021

  1. Add support to multiple property pairs in sprint

    Sometimes it is required to pass multiple properties to `IOContext` in
    `sprint`. For example, if we want to print with `:compact` and `:limit`
    set to true. Currently, the only possible way to do this is creating an
    `IOContext` using a dummy `IOBuffer` with those parameters. Hence, this
    commit allows to pass a vector of pairs `:key=>value` to `context`
    keyword of `sprint` so that we can easily set multiple properties.
    
    This is not a breaking change, and no performance regression was
    identified when using the previous function signatures.
    ronisbr committed Feb 21, 2021
    Configuration menu
    Copy the full SHA
    832249d View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    0af98ed View commit details
    Browse the repository at this point in the history
  3. Update base/strings/io.jl

    Co-authored-by: Rafael Fourquet <fourquet.rafael@gmail.com>
    ronisbr and rfourquet committed Feb 21, 2021
    Configuration menu
    Copy the full SHA
    ede0566 View commit details
    Browse the repository at this point in the history
  4. Update sprint docstring

    ronisbr committed Feb 21, 2021
    Configuration menu
    Copy the full SHA
    46d16dd View commit details
    Browse the repository at this point in the history
  5. Update NEWS.md

    ronisbr committed Feb 21, 2021
    Configuration menu
    Copy the full SHA
    36f2f5d View commit details
    Browse the repository at this point in the history

Commits on Feb 22, 2021

  1. Configuration menu
    Copy the full SHA
    650f625 View commit details
    Browse the repository at this point in the history