User loginNavigation |
Trouble 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 By jezng at 2015-05-18 05:31 | LtU Forum | previous forum topic | next forum topic | other blogs | 3313 reads
|
Browse archivesActive forum topics |
Recent comments
20 min 36 sec ago
29 min 58 sec ago
34 min 55 sec ago
7 hours 49 min ago
8 hours 5 min ago
12 hours 47 min ago
15 hours 21 min ago
21 hours 32 min ago
1 day 4 hours ago
1 day 5 hours ago