Skip to content

Instantly share code, notes, and snippets.

@domsj
Last active April 20, 2017 16:21
Show Gist options
  • Save domsj/b0c9e863d07662138c14d025b3bdb19c to your computer and use it in GitHub Desktop.
Save domsj/b0c9e863d07662138c14d025b3bdb19c to your computer and use it in GitHub Desktop.
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