-
Notifications
You must be signed in to change notification settings - Fork 2
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 (set|with)context to bundle arguments to IOContext #14
Conversation
Codecov Report
@@ Coverage Diff @@
## master #14 +/- ##
===========================================
+ Coverage 42.85% 84.61% +41.75%
===========================================
Files 1 1
Lines 7 13 +6
===========================================
+ Hits 3 11 +8
+ Misses 4 2 -2
Continue to review full report at Codecov.
|
This totally makes sense, but I have no idea how to name the |
Updated to |
bump |
Just throwing two ideas out here:
|
Could also be implemented as a callable struct then instead of returning an anonymous function. I don't mind |
Thanks for the ping. Sorry, forgot about this PR. Yes, I agree Actually, we don't need to use the type names as API. How about DisplayAs.setcontext(obj, kvs::Pair...) = IOContextCarrier(obj, kvs...)
DisplayAs.withcontext(kvs::Pair...) = obj -> IOContextCarrier(obj, kvs...) (where |
I implemented the proposed changes. CI config is outdated here, do you want me to update that? Edit: #15 |
arguments to IOContext with an object.
Thanks a lot for your patience! And sorry for the very slow process. |
No worries. Can you make a new release too? Thanks. Edit: Just saw JuliaRegistries/General#53113, thanks. |
Implement
IOContextThingy
(placeholder) to bundle arguments toIOContext
with an object.