Skip to content

Instantly share code, notes, and snippets.

@domsj
Last active April 20, 2017 16:21
parse_ocaml
let () =
if false
then ();
print_endline "cucu1";
if false
then
let () = print_endline "" in
();
print_endline "cucu2"
(*
what will the above program print?
turns out it only prints "cucu1", not "cucu2"
*)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment