Hi Mark,

No, there isn't. It is implementable, e.g based on the techniques used for the Printf module (see the source code for that module in the F# distribution). But no one has actually done that yet. If you do, please post the code or add it to "fsharpsamples" on CodePlex!

Kind regards

don

By on 3/25/2008 5:51 AM ()

I've implemented an imperative pretty printer (based on Oppen's algorithm) with an interface similar to the one in OCaml's format module. It's incomplete (no built-in printf-like formatting, no tab stops, ...), a bit rough and and not really ready for public consumption, but if someone would like to try it out, just drop me a line.

BTW: in my opinion input/output is fundamentally imperative and is most efficiently/elegantly done through imperative interfaces ;-)

By on 3/25/2008 11:32 AM ()
IntelliFactory Offices Copyright (c) 2011-2012 IntelliFactory. All rights reserved.
Home | Products | Consulting | Trainings | Blogs | Jobs | Contact Us | Terms of Use | Privacy Policy | Cookie Policy
Built with WebSharper