Skip to content

Update to_s and inspect to have similar signatures accross the stdlib#7528

Merged
bcardiff merged 25 commits intocrystal-lang:masterfrom
jkthorne:unify-to_s-signature
Mar 14, 2019
Merged

Update to_s and inspect to have similar signatures accross the stdlib#7528
bcardiff merged 25 commits intocrystal-lang:masterfrom
jkthorne:unify-to_s-signature

Conversation

@jkthorne
Copy link
Contributor

@jkthorne jkthorne commented Mar 8, 2019

I noticed some differences the signatures of some to_s methods that take IO. This just adds some types explicitly and changes some of the methods to use the same signature.

Sija and others added 2 commits March 9, 2019 23:15
Co-Authored-By: wontruefree <javajax@gmail.com>
Co-Authored-By: wontruefree <javajax@gmail.com>
@jkthorne
Copy link
Contributor Author

@Sija and @r00ster91 I have updated the PR what do you think?

@Sija
Copy link
Contributor

Sija commented Mar 11, 2019

👍 from me

Copy link

@ghost ghost left a comment

Choose a reason for hiding this comment

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

👍 from me too.

Copy link
Contributor

@j8r j8r left a comment

Choose a reason for hiding this comment

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

Since we are annotating, even this are compiler's internal; there are no docs but this can help debugging.

j8r and others added 18 commits March 11, 2019 16:02
Co-Authored-By: wontruefree <javajax@gmail.com>
Co-Authored-By: wontruefree <javajax@gmail.com>
Co-Authored-By: wontruefree <javajax@gmail.com>
Co-Authored-By: wontruefree <javajax@gmail.com>
Co-Authored-By: wontruefree <javajax@gmail.com>
Co-Authored-By: wontruefree <javajax@gmail.com>
Co-Authored-By: wontruefree <javajax@gmail.com>
Co-Authored-By: wontruefree <javajax@gmail.com>
Co-Authored-By: wontruefree <javajax@gmail.com>
Co-Authored-By: wontruefree <javajax@gmail.com>
Co-Authored-By: wontruefree <javajax@gmail.com>
Co-Authored-By: wontruefree <javajax@gmail.com>
Co-Authored-By: wontruefree <javajax@gmail.com>
Co-Authored-By: wontruefree <javajax@gmail.com>
Co-Authored-By: wontruefree <javajax@gmail.com>
Co-Authored-By: wontruefree <javajax@gmail.com>
Co-Authored-By: wontruefree <javajax@gmail.com>
Co-Authored-By: wontruefree <javajax@gmail.com>
j8r and others added 2 commits March 11, 2019 16:09
Co-Authored-By: wontruefree <javajax@gmail.com>
Co-Authored-By: wontruefree <javajax@gmail.com>
@jkthorne
Copy link
Contributor Author

@j8r I updated everything with your suggestions. Can you take another look?

@jkthorne
Copy link
Contributor Author

@j8r can you rerun CI for this it looks like the build was canceled?

@straight-shoota
Copy link
Member

I cancelled it because there way too many builds in the queue. I've just triggered a rerun.

@jkthorne
Copy link
Contributor Author

@bcardiff I just wanted to check in and see if this could get merged?

@bcardiff bcardiff merged commit ae21e16 into crystal-lang:master Mar 14, 2019
@straight-shoota straight-shoota added this to the 0.28.0 milestone Mar 14, 2019
@bcardiff
Copy link
Member

Now that there were two reviews yes. Thanks @wontruefree!

urde-graven pushed a commit to urde-graven/crystal that referenced this pull request Mar 20, 2019
* 'master' of github.com:crystal-lang/crystal:
  Change the font-weight used in Playground (crystal-lang#7552)
  Fix formatting absolute paths (crystal-lang#7560)
  Refactor IO::Syscall as IO::Evented (crystal-lang#7505)
  YAML: fix test checking serialization of slices for libyaml 0.2.2 (crystal-lang#7555)
  Let Array#sort only use `<=>`, and let `<=>` return `nil` for partial comparability (crystal-lang#6611)
  Update `to_s` and `inspect` to have similar signatures accross the stdlib (crystal-lang#7528)
  Fix restriction of valid type vs free vars (crystal-lang#7536)
  Rewrite macro spec without executing a shell command (crystal-lang#6962)
  Suggest `next` when trying to break from captured block  (crystal-lang#7406)
  Fix GenericClassType vs GenericClassInstanceType restrictions (crystal-lang#7537)
  Add human readable formatting for numbers (crystal-lang#6314)
  Add command and args to execvp error message (crystal-lang#7511)
  Implement Set#add? method (crystal-lang#7495)
@jkthorne jkthorne deleted the unify-to_s-signature branch July 11, 2020 04:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants