Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0006297OCamlOCaml standard librarypublic2014-01-18 12:382014-02-19 17:31
Assigned To 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0006297: new function in Printf : kksprintf
Descriptionlet 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 -> "<untranslated>" | Some fmt' -> callwith fmt') fmt

I don't have a strong opinion on the naming.
could this make its way into trunk (after [^]) ? is there a 'safe' way to implement it otherwise ?
TagsNo tags attached.
Attached Files

- Relationships
related to 0006017confirmed A new format implementation based on GADTs 

-  Notes
There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
2014-01-18 12:38 hhugo New Issue
2014-02-19 17:31 doligez Relationship added related to 0006017

Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker