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
Printf.ksprintf could call the continuation on %! #7756
Comments
Comment author: @Octachron Would it not be better to merge the intermediaries result with f "foo" "bar" rather than constraining the continuation to return unit? |
Comment author: @diml What would be the use case for such a feature? |
This issue has been open one year with no activity. Consequently, it is being marked with the "stale" label. What this means is that the issue will be automatically closed in 30 days unless more comments are added or the "stale" label is removed. Comments that provide new information on the issue are especially welcome: is it still reproducible? did it appear in other contexts? how critical is it? etc. |
IIRC it was a halfway house for translating VT100 sequences to Windows API calls which I was doing - if you can effectively separate the calls on |
It is a rather important property of |
@Drup - how so? |
|
What I was asking was the "important property" you refer to - what prevents there being a version of |
The manual for kfprintf says: |
“Obviously, this would have to be done with a new function, as it would be a change of semantics for Printf.ksprintf.”! I was curious that @Drup refers to the entire module... |
(@dra27 If you are proposing a new function then maybe you should change the title) |
+1 And I would suggest not naming the new function |
Original bug ID: 7756
Reporter: @dra27
Status: new
Resolution: open
Priority: normal
Severity: feature
Category: standard library
Bug description
Currently %! is a no-op for functions which aren't writing to buffered channels. I'm wondering what it might be to have
ksprintf f "foo%!bar"
result inf "foo";
f "bar".Additional information
Obviously, this would have to be done with a new function, as it would be a change of semantics for Printf.ksprintf.
The text was updated successfully, but these errors were encountered: