User loginNavigation |
archivesTrouble understanding Danvy's functional unparsingI've read Danvy's paper here[1], and I fail to understand why CPS is necessary for the types to work out. I've written a basic version of "functional sprintf" in OCaml that doesn't use CPS and seems to typecheck fine:
let float_ s i = s ^ string_of_float i let (@) f g s a b = g (f s a) b let sprintf fmt = fmt "" let (_s : string) = [1]: http://www.brics.dk/RS/98/12/BRICS-RS-98-12.pdf |
Browse archivesActive forum topics |
Recent comments
22 weeks 2 days ago
22 weeks 2 days ago
22 weeks 2 days ago
44 weeks 3 days ago
48 weeks 5 days ago
50 weeks 2 days ago
50 weeks 2 days ago
1 year 6 days ago
1 year 5 weeks ago
1 year 5 weeks ago