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

new function in Printf : kksprintf #6297

Closed
vicuna opened this issue Jan 18, 2014 · 3 comments
Closed

new function in Printf : kksprintf #6297

vicuna opened this issue Jan 18, 2014 · 3 comments

Comments

@vicuna
Copy link

vicuna commented Jan 18, 2014

Original bug ID: 6297
Reporter: @hhugo
Status: feedback (set by @damiendoligez on 2014-07-16T13:05:50Z)
Resolution: open
Priority: normal
Severity: feature
Category: standard library
Related to: #6017
Monitored by: @hcarty @dbuenzli

Bug description

let kksprintf : ((('b,unit,string,'a) format4 -> string) -> 'a) -> ('b,unit,string,'a) format4 -> 'b = fun f fmt -> ...

a usecase is for it: implement i18n features
let i18n fmt = kksprintf (fun callwith -> match get_traduction fmt with None -> "" | Some fmt' -> callwith fmt') fmt

I don't have a strong opinion on the naming.
could this make its way into trunk (after #6017) ? is there a 'safe' way to implement it otherwise ?

@vicuna
Copy link
Author

vicuna commented May 8, 2014

Comment author: @dbuenzli

I'm not sure how this really helps for i18n. What you really want is positional specifiers but it seems that they are not part of the feature set see #4204.

@vicuna
Copy link
Author

vicuna commented Jul 16, 2014

Comment author: @damiendoligez

Just by reading the type, I don't know what this function is supposed to do.

@vicuna vicuna added the stdlib label Mar 14, 2019
@stedolan
Copy link
Contributor

Closing because it's unclear from this description what the proposed feature actually is. (@hhugo: if you still want this, feel free to reopen)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants