You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 ?
The text was updated successfully, but these errors were encountered:
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.
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 ?
The text was updated successfully, but these errors were encountered: