Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
[Caml-list] pretty printers and format and matrices
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2001-06-12 (21:00)
From: Chris Hecker <checker@d...>
Subject: Re: [Caml-list] pretty printers and format and matrices

>Once one gets used to it, it's really fun so don't give up...

I had the choice of "try to get the formatting working for no other reason than curiosity" or "write more real code on my game", so the latter edged it out.  :)

> let print2d ppf a =

This works better, thanks!  I swear I tried something exactly like that...

There's a tiny bit of weirdness with the tabs after the first column, but it's way better than what I had.  I definitely tried the @\n, but I admit I was randomly typing at that point.  The docs could stand to be a bit clearer on newlines versus breaks.  Perhaps your print2d would make a good complementary tutorial to the expression printer in the FAQ...


Bug reports:  FAQ:
To unsubscribe, mail  Archives: